void ClickState0(Vector3Int coord) { ArmyUnit u = map.GetUnitAt(coord); Territory t = map.GetTerritoryAt(coord); if (u != null) { // } else if (t.IsSummoningCircle()) { // you can build and if it's your turn open a menu // just open the menu menus.OpenShop(); } }
void BasicSelection(Vector3Int coord) { ArmyUnit u = map.GetUnitAt(coord); Territory t = map.GetTerritoryAt(coord); if (u != null) { // Check the unit if (IsMyPlayer(u.GetPlayer())) { // } } else if (t != null) { // check for a base or do random GUI update if (t.IsSummoningCircle()) { // } } }