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; } }
public void RegisterWatchers(MilitaryHub watcher) { deathListinerHubs.Add(watcher); }