コード例 #1
0
 private void OnGUI()
 {
     if (ArenaManager.player2ndWin == true || ArenaManager.enemy2ndWin == true)
     {
         if (GUI.Button(new Rect(Screen.width / 2 - 100, Screen.height / 2 - 50, 200, 100), state.ToString()))
         {
             ResetRound();
             MyArena.ResetArena();
             //Only Winners get XP
             if (state == BattleState.WON)
             {
                 player.AddExperience(60);
             }
             SceneManager.LoadScene("Main");
         }
     }
 }