예제 #1
0
 // Update is called once per frame
 void Update()
 {
     if (gameController.CanSelectCharacter())
     {
         if (player.GetButtonDown("Attack") && gameController.CanInput())
         {
             if (outText.activeSelf)
             {
                 EnterGame();
             }
         }
         if (player.GetButtonDown("Shove") && gameController.CanInput())
         {
             if (inText.activeSelf)
             {
                 ExitGame();
             }
         }
     }
 }