public void PlayFinish(bool play) { //Stop getting shot input at input handle view GameModeSignal.Dispatch(play); //Change game mode to stop time and play functions gameMode = play ? GameMode.PLAY : GameMode.MOVING; isRePlay = false; gamePlaying = play; //Handle UI visuals if (play) { m_uIHandle.StopGameVisuals(true); m_uIHandle.SetShotPower(0f); } else { m_uIHandle.StopGameVisuals(false); } }
public override void OnEnter() { mSignal = (GameModeSignal)signal.Value; mSignal.callback += OnSignal; }