コード例 #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
ファイル: MusicManager.cs プロジェクト: trgrote/ostara2021
    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);
        }
    }