public void SearchRoom(Action <bool> onResult) { searchingRoom = true; RPCDicObserver.AddObserver(this); RPCQueryObserver.AddObserver(this); //Order first to search fast FDFacade.Instance.QueryTable("SearchRoom", roomReference.OrderByChild(MyConst.GAMEROOM_STATUS).EqualTo("0")); onSuccessMatchMake = onResult; }
public override void OnStartPhase() { FindObjectOfType <PhaseSkillController> ().ShowAutoActivateButtons(true); Debug.Log("Starting Answer Phase"); RPCDicObserver.AddObserver(AnswerIndicatorController.Instance); hasAnswered = false; timeLeft = 5; stoptimer = true; InvokeRepeating("StartTimer", 0, 1); questionSelect.SetActive(true); }
public override void OnStartPhase() { FindObjectOfType <PhaseSkillController> ().ShowAutoActivateButtons(false); Debug.Log("Starting attack phase"); AnswerIndicatorController.Instance.ResetAnswer(); RPCDicObserver.AddObserver(BattleLogic.Instance); GameTimerView.Instance.ToggleTimer(false); stoptimer = true; timeLeft = 20; InvokeRepeating("StartTimer", 0, 1); Attack(); }
private void GoToGameRoom() { AudioController.Instance.PlayAudio(AudioEnum.Bgm); lobbyRoom.SetActive(false); roomViews.SetActive(false); gameRoomUI.SetActive(true); gameRoomAssets.SetActive(true); ScreenController.Instance.StopLoadingScreen(); StartPreTimer(); CameraWorksController.Instance.StartIntroCamera(); RPCDicObserver.AddObserver(GestureController.Instance); RPCDicObserver.AddObserver(BattleStatusManager.Instance); RPCDicObserver.AddObserver(SkillActivator.Instance); }
public void OnStartPhase() { RPCDicObserver.AddObserver(PartAnswerIndicatorController.Instance); Invoke("StartQuestion", 2.0f); }
public void Init() { RPCDicObserver.AddObserver(this); }
private void Init() { RPCDicObserver.AddObserver(this); }