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); }
public void OnPressedQuit() { _PhotonNetworkManager.LeaveGame(); SceneManager.LoadScene("MainMenu 1"); _UIManager.SetScreen(_MainMenuScreenTag); }
public void OnClickBackFoodWorld() { _PhotonNetworkManager.LeaveGame(); _UIManager.SetScreen(_FoodWorldScreenTag); }
public void OnSelectCancel() { _PhotonNetworkManager.LeaveGame(); _UIManager.SetScreen(_FoodWorldScreenTag); }