Example #1
0
 void Start()
 {
     gameManager = FindObjectOfType <GameManager> ();
     gameManager.allUnits.Add(this);
     turnManager = FindObjectOfType <TurnManager> ();
     turnManager.AddObject(this);
     transform.position = gameManager.walkableTileMap.GetCellCenterWorld(positionInGrid);
     currentAttributes  = new UnitAttributes(unitBreed);
 }