Exemplo n.º 1
0
 void Awake()
 {
     crystals        = new List <GameObject>();
     enemySpawners   = new List <GameObject>();
     state           = STATES.RECREATING_GRID;
     gridManager     = GetComponent <GridManager> ();
     pathfindingGrid = GetComponent <PathdindingGrid> ();
     gridManager.Setup();
     pathfindingGrid.Setup(gridManager.rows + 1, gridManager.columns + 1);    //+1 Because i generate a external wall
     state = STATES.STOP;
 }
Exemplo n.º 2
0
 void Awake()
 {
     grid = GameController.Instance.GetComponent <PathdindingGrid> ();
 }