Example #1
0
 protected override void DoAction2()
 {
     if (GameController.Instance.supplies >= HUB_COST + 5 && GameController.Instance.CheckTileTag(x, y, "Grass"))
     {
         MilitaryHub economyHubObj = GameObject.Instantiate(militaryHub, transform.position, transform.rotation);
         GameController.Instance.ReplaceTile(x, y, economyHubObj.gameObject);
         GameController.Instance.supplies -= HUB_COST;
     }
 }
Example #2
0
 public void RegisterWatchers(MilitaryHub watcher)
 {
     deathListinerHubs.Add(watcher);
 }