コード例 #1
0
 void OnApplicationQuit()
 {
     if (Master.getInstance().multiplayer)
     {
         AppWarp.deleteCurrentRoom();
         AppWarp.exit();
     }
 }
コード例 #2
0
 void endGame(bool winner)
 {
     if (winner)
     {
         status = StatusCode.GAME_END_VICTORY;
     }
     else
     {
         status = StatusCode.GAME_END_DEFEAT;
         AppWarp.deleteCurrentRoom();
     }
 }
コード例 #3
0
 void cancelRoomWaitChoice(bool b)
 {
     AppWarp.deleteCurrentRoom();
     mode = MenuMode.MP_INIT;
 }
コード例 #4
0
 void opponentLeftHandler()
 {
     pauseGame(true);
     AppWarp.deleteCurrentRoom();
     status = StatusCode.OPP_LEFT;
 }