예제 #1
0
        private void OnTimerComplete()
        {
            if (!inhaled)
            {
                return;
            }
            SoundFx.Stop();
            SoundFx.Inhale();
            inhaled = false;

            GamepadHelper.StopVibration();
        }
예제 #2
0
        protected void GamePadeCheck()
        {
            if (GamepadHelper.IsSquezzingReleased && IsSqueezeTimerRunning)
            {
                ForceFinishTimer();
            }

            if (GamepadHelper.IsGoingToMenu)
            {
                SceneManager.LoadScene(0);
            }

            if (GamepadHelper.IsSquezzingReleased)
            {
                GamepadHelper.StopVibration();
            }
        }
예제 #3
0
 public void AssignGamepad(GamePadController.Controller controller)
 {
     GamepadHelper = new GamepadHelper(controller);
     GetComponentInChildren <TimeVibrationController>().Ready();
 }