Пример #1
0
 public void Start()
 {
     background = new Texture2D(20, 20);
     background.SetPixels(Enumerable.Repeat(Color.white, 20 * 20).ToArray());
     for (int i = 0; i < background.width; i += 5)
         for (int j = 0; j < background.height; j += 5)
             background.SetPixel(i, j, Color.black);
     RenderingManager.AddToPostDrawQueue(0, OnDraw);
     groundStationCS = new CommSystem();
 }
Пример #2
0
 public void Start()
 {
     background = new Texture2D(20, 20);
     background.SetPixels(Enumerable.Repeat(Color.white, 20 * 20).ToArray());
     for (int i = 0; i < background.width; i += 5)
     {
         for (int j = 0; j < background.height; j += 5)
         {
             background.SetPixel(i, j, Color.black);
         }
     }
     RenderingManager.AddToPostDrawQueue(0, OnDraw);
     groundStationCS = new CommSystem();
 }