Пример #1
0
        void Awake()
        {
            ResourceCount = 0;
            _transform = GetComponent<Transform>();

            AllTiles = new Tile[width * height];
        }
Пример #2
0
 void InitialiseTiles()
 {
     for (int i = 0; i < width; i++)
     {
         for (int j = 0; j < height; j++)
         {
             Tile tile = new Tile(new Vector2(i, j));
             AllTiles[i*height + j] = tile;
         }
     }
 }