private void onMatchingSucceeded() { backButton.Inactive(); StartCoroutine(AnimationTransit.Out(transit, () => { waitingManager.gameObject.SetActive(true); waitingManager.InMenu(); gameObject.SetActive(false); })); }
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)); }
public void OutMenu(Action afterAction = null) { StartCoroutine(AnimationTransit.Out(transit, afterAction)); }
public void Out() { StartCoroutine(AnimationTransit.Out(transit)); }
public void Hide() { IsShow = false; StartCoroutine(AnimationTransit.Out(transit, () => gameObject.SetActive(false))); }