Пример #1
0
 void Update()
 {
     Esc();
     if (cameraMode == 0) //Camera Movement Mode
     {
         battleMenu.SetActive(false);
         optionsMenu.SetActive(false);
         moveScript.MoveCamera();
     }
     else if (cameraMode == 1) //Battle Menu Mode
     {
         battleMenu.SetActive(true);
         if (trainerScript.trainerSelected == false)
         {
             item.interactable = false;
         }
         else
         {
             item.interactable = true;
         }
     }
     else if (cameraMode == 2) //Escape Menu Mode
     {
         optionsMenu.SetActive(true);
     }
     else if (cameraMode == 3) //Fight Menu
     {
         battleMenu.SetActive(false);
         fightMenu.SetActive(true);
         //Read Pokemon selected moves
         //Print pokemon selected moves
     }
     else if (cameraMode == 4) //Item Menu
     {
         itemMenu.SetActive(true);
     }
     else if (cameraMode == 5) //Stats on attack
     {
         battleStatisticMenu.SetActive(true);
     }
     else if (cameraMode == 6) //Stats on item
     {
         itemMenu.SetActive(false);
     }
     else if (cameraMode == 7) //Move shows arrows and makes blue spaces and red spaces over tiles
     {
         battleMenu.SetActive(false);
         moveScript.MoveSelectedPokemon(); //Add Features with blue and red and arrows
     }
 }