예제 #1
0
    private void OnPlayerCompletedAllDishes(object playerId)
    {
        int playerViewId = (int)playerId;

        _MatchState.MatchOver      = true;
        _MatchState.WonTheMatch    = PhotonView.Find(playerViewId).IsMine;
        _MatchState.GameOverReason = GameOverReason.DISH_COMPLETED_BY_SOMEONE;
        _PhotonNetworkManager.LeaveGame();
        _UIManager.SetScreen(_UIGameOverTag);
    }
예제 #2
0
 public void OnPressedQuit()
 {
     _PhotonNetworkManager.LeaveGame();
     SceneManager.LoadScene("MainMenu 1");
     _UIManager.SetScreen(_MainMenuScreenTag);
 }
예제 #3
0
 public void OnClickBackFoodWorld()
 {
     _PhotonNetworkManager.LeaveGame();
     _UIManager.SetScreen(_FoodWorldScreenTag);
 }
예제 #4
0
 public void OnSelectCancel()
 {
     _PhotonNetworkManager.LeaveGame();
     _UIManager.SetScreen(_FoodWorldScreenTag);
 }