Exemplo n.º 1
0
 private void Start()
 {
     plantTileManager   = gameObject.GetComponent <GridManager>().plantTileManager;
     groundTileFromName = gameData.GetComponent <LoadGameData>().groundTileFromName;
     terrainFromName    = gameData.GetComponent <LoadGameData>().terrainFromName;
     allTilePositions   = gameObject.GetComponent <GridManager>().allTilePositions;
     GetGroundTiles();
 }
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(gameObject);
     }
 }