void OnApplicationQuit() { if (Master.getInstance().multiplayer) { AppWarp.deleteCurrentRoom(); AppWarp.exit(); } }
void endGame(bool winner) { if (winner) { status = StatusCode.GAME_END_VICTORY; } else { status = StatusCode.GAME_END_DEFEAT; AppWarp.deleteCurrentRoom(); } }
void cancelRoomWaitChoice(bool b) { AppWarp.deleteCurrentRoom(); mode = MenuMode.MP_INIT; }
void opponentLeftHandler() { pauseGame(true); AppWarp.deleteCurrentRoom(); status = StatusCode.OPP_LEFT; }