Exemplo n.º 1
0
 public void SelectProvince(GameObject province)
 {
     // Debug.LogError(selected_province);
     try
     {
         selected_province.GetComponent <provincegen>().selected = false;
         // Debug.LogError(selected_province.GetComponent<provincegen>().selected);
     }
     catch (Exception)
     {
     }
     selected_province = province;
     // Debug.Log(selected_province);
     selected_province.GetComponent <provincegen>().selected = true;
     if (mode == CONSTRUCION_MODE)
     {
         ConstructionManager.GetComponent <ConstructionManager>().UpdateMenuText();
     }
     else if (mode == ARMY_MODE)
     {
         OpenMenu(ArmyMenu);
         Armymanager.UpdateInfo();
     }
     else if (mode == SEPARATISM_MODE)
     {
         OpenMenu(SeparatismMenu);
         separatismManager.UpdateInfo();
     }
 }