void CheckDeath(BattleResult battleResult) { if (battleResult == BattleResult.YouLose) { SceneChangeManager.ChangeResultScene(false); } else { SceneChangeManager.ChangeResultScene(true); } gameSignalingClient.Dispose(); }
void CheckDeath() { if (playerBotController.IsDeath()) { SceneChangeManager.ChangeResultScene(false); } if (enemyBotController.IsDeath()) { SceneChangeManager.ChangeResultScene(true); } }
void CheckDeath() { if (playerBotController.IsDeath()) { gameSignalingHost.SendBattleResult(BattleResult.YouWin); gameSignalingHost.Dispose(); SceneChangeManager.ChangeResultScene(false); } if (enemyBotController.IsDeath()) { gameSignalingHost.SendBattleResult(BattleResult.YouLose); gameSignalingHost.Dispose(); SceneChangeManager.ChangeResultScene(true); } }