Esempio n. 1
0
        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);
                }));
            }
        }
Esempio n. 2
0
 public void OnPressedLeagueButton()
 {
     backButton.Inactive();
     OutMenu(() => {
         leagueManager.gameObject.SetActive(true);
         leagueManager.InMenu(() => backButton.Active());
         gameObject.SetActive(false);
     });
 }
Esempio n. 3
0
        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);
            });
        }