示例#1
0
 public void PressedCreateRoomOnLobby()
 {
     Debug.Log("ClubManager::PressedCreateRoomOnLobby");
     backButton.Inactive();
     StartCoroutine(AnimationTransit.Transition(transit, createRoomTransit, () => backButton.Active()));
     state = State.CreateRoom;
 }
示例#2
0
 public void OnCancelCreateRoom()
 {
     Debug.Log("ClubManager::OnCancelCreateRoom");
     backButton.Inactive();
     StartCoroutine(AnimationTransit.Transition(createRoomTransit, transit, () => backButton.Active()));
     state = State.Menu;
 }
示例#3
0
 private void onMatchingSucceeded()
 {
     backButton.Inactive();
     StartCoroutine(AnimationTransit.Out(transit, () => {
         waitingManager.gameObject.SetActive(true);
         waitingManager.InMenu();
         gameObject.SetActive(false);
     }));
 }
示例#4
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);
            }));
        }
示例#5
0
 private void inWaitingWindow()
 {
     isInWaitingWindow = true;
     StartCoroutine(AnimationTransit.In(waitingWindowTransition));
 }
示例#6
0
 private void outOpponentPanel()
 {
     isInOpponentPanel = false;
     StartCoroutine(AnimationTransit.Out(opponentPanelTransition));
 }
示例#7
0
 private void inOpponentPanel()
 {
     isInOpponentPanel = true;
     StartCoroutine(AnimationTransit.In(opponentPanelTransition));
 }
示例#8
0
 private void outPlayerPanel()
 {
     isInPlayerPanel = false;
     StartCoroutine(AnimationTransit.Out(playerPanelTransition));
 }
示例#9
0
 private void inPlayerPanel()
 {
     isInPlayerPanel = true;
     StartCoroutine(AnimationTransit.In(playerPanelTransition));
 }
示例#10
0
 public void OutMenu(Action afterAction = null)
 {
     StartCoroutine(AnimationTransit.Out(transit, afterAction));
 }
示例#11
0
 public void Hide()
 {
     IsShow = false;
     StartCoroutine(AnimationTransit.Out(transit, () => gameObject.SetActive(false)));
 }
示例#12
0
 public void Out()
 {
     StartCoroutine(AnimationTransit.Out(transit));
 }
示例#13
0
 public void In()
 {
     StartCoroutine(AnimationTransit.In(transit));
 }
示例#14
0
 public void InMenu(Action afterAction = null)
 {
     StartCoroutine(AnimationTransit.In(menuTransit, afterAction));
 }
示例#15
0
 private void outWaitingWindow()
 {
     isInWaitingWindow = false;
     StartCoroutine(AnimationTransit.Out(waitingWindowTransition));
 }
示例#16
0
 public void InMenu(Action afterAction = null)
 {
     state = State.Menu;
     StartCoroutine(AnimationTransit.In(transit, afterAction));
     OnStart();
 }
示例#17
0
 private void cancelModeSelectTransition()
 {
     isInOpponentPanel = false;
     isInWaitingWindow = true;
     StartCoroutine(AnimationTransit.Transition(opponentPanelTransition, waitingWindowTransition));
 }
示例#18
0
 public void Show()
 {
     gameObject.SetActive(true);
     IsShow = true;
     StartCoroutine(AnimationTransit.In(transit));
 }