private void back(object sender, EventArgs args) { if (PhotonNetwork.inRoom) { PhotonNetwork.LeaveRoom(); } backButton.Inactive(); if (matchingType == MatchingType.League) { StartCoroutine(OutMenu(() => { leagueManager.gameObject.SetActive(true); leagueManager.InMenu(() => backButton.Active()); gameObject.SetActive(false); })); } if (matchingType == MatchingType.Club) { StartCoroutine(OutMenu(() => { clubManager.gameObject.SetActive(true); clubManager.InMenu(() => backButton.Active()); gameObject.SetActive(false); })); } }
public void OnPressedLeagueButton() { backButton.Inactive(); OutMenu(() => { leagueManager.gameObject.SetActive(true); leagueManager.InMenu(() => backButton.Active()); gameObject.SetActive(false); }); }
public void OnCancel() { Debug.Log("ClubManager::OnCancel"); PhotonNetwork.LeaveLobby(); PhotonNetwork.lobby = null; backButton.Inactive(); OutMenu(() => { menuManager.gameObject.SetActive(true); menuManager.InMenu(() => backButton.Active()); gameObject.SetActive(false); }); }