private void onMatchingSucceeded()
 {
     backButton.Inactive();
     StartCoroutine(AnimationTransit.Out(transit, () => {
         waitingManager.gameObject.SetActive(true);
         waitingManager.InMenu();
         gameObject.SetActive(false);
     }));
 }
Exemple #2
0
        public void StartByHost()
        {
            guest = false;

            // TODO:
            var settings = new RoomSettings {
                WinsCount = 2,
                FallSpeed = 1.5f,
            };
            var name = IdentificationNameUtility.Create(PhotonNetwork.playerName, PhotonNetwork.AuthValues.UserId);

            roomManager.CreateRoom(name, settings);

            backButton.Inactive();
            StartCoroutine(AnimationTransit.Out(createRoomTransit, () => {
                waitingManager.gameObject.SetActive(true);
                waitingManager.InMenu(() => backButton.Active());
                gameObject.SetActive(false);
            }));
        }
 private void outWaitingWindow()
 {
     isInWaitingWindow = false;
     StartCoroutine(AnimationTransit.Out(waitingWindowTransition));
 }
 private void outOpponentPanel()
 {
     isInOpponentPanel = false;
     StartCoroutine(AnimationTransit.Out(opponentPanelTransition));
 }
 private void outPlayerPanel()
 {
     isInPlayerPanel = false;
     StartCoroutine(AnimationTransit.Out(playerPanelTransition));
 }
Exemple #6
0
 public void OutMenu(Action afterAction = null)
 {
     StartCoroutine(AnimationTransit.Out(transit, afterAction));
 }
Exemple #7
0
 public void Out()
 {
     StartCoroutine(AnimationTransit.Out(transit));
 }
Exemple #8
0
 public void Hide()
 {
     IsShow = false;
     StartCoroutine(AnimationTransit.Out(transit, () => gameObject.SetActive(false)));
 }