예제 #1
0
 public void OpenGameModeMenu()
 {
     if (intendant.GetMode() != intendant.CHOISE_MODE)
     {
         bool onview = GameModeMenu.activeSelf;
         if (onview)
         {
             GameModeMenu.SetActive(false);
         }
         else
         {
             intendant.OpenMenu(GameModeMenu);
         }
         try
         {
             intendant.selected_province.GetComponent <provincegen>().selected = false;
             intendant.selected_province = null;
             Debug.Log("opened");
             intendant.selected_state.GetComponent <stategen>().ChangeSelection();
             intendant.selected_state = null;
             Debug.Log("finished");
         }
         catch (Exception) { }
         try
         {
             intendant.selected_state.GetComponent <stategen>().ChangeSelection();
             intendant.selected_state = null;
         }
         catch (Exception)
         { }
     }
 }
예제 #2
0
 public void OnPointerEnter(PointerEventData eventData) // Executor
 {
     if (intendant.GetMode() == intendant.CHOISE_MODE)
     {
         intendant.Alert(province_name);
     }
     finished_up = false;
     moveup      = true;
     movedown    = false;
 }