Пример #1
0
 public void OnStateChanged(rho.StateScriptableObject oldState, rho.StateScriptableObject newState)
 {
     if (newState == _gameMode)
     {
         StartCoroutine("ApplyForce");
     }
 }
Пример #2
0
 public void OnStateChanged(rho.StateScriptableObject oldState, rho.StateScriptableObject newState)
 {
     if (_playShiftSound && oldState != _gameMode && newState == _gameMode)
     {
         _plateShiftSound.Play();
     }
 }
Пример #3
0
    void OnStateChanged(rho.ExternalVariable <rho.StateScriptableObject> sender, rho.StateScriptableObject oldState, rho.StateScriptableObject newState)
    {
        _normal.mute  = true;
        _vintage.mute = true;

        if (_normalStates.Contains(newState))
        {
            _normal.mute = false;
        }
        else if (_vintageStates.Contains(newState))
        {
            _vintage.mute = false;
        }
    }
Пример #4
0
    public void OnNoodleCameraSpawn(rho.ExternalVariable <rho.StateScriptableObject> sender, rho.StateScriptableObject oldValue, rho.StateScriptableObject newValue)
    {
        if (oldValue != _start && newValue == _start)
        {
            if (_currentResettable)
            {
                Destroy(_currentResettable);
            }

            _currentResettable = Instantiate(_resettable);
        }
    }