Exemplo n.º 1
0
 public void AddMiner()
 {
     if (currentGold >= minerValue)
     {
         hq.ExtractGold(minerValue);
         spawnPosition   = PathfindingManager.Instance.GetRandomPathNodePos();
         spawnPosition.y = 1f;
         Instantiate(minerPrefab, spawnPosition, Quaternion.identity, miners.transform);
     }
 }