public void OnStateChanged(rho.StateScriptableObject oldState, rho.StateScriptableObject newState) { if (newState == _gameMode) { StartCoroutine("ApplyForce"); } }
public void OnStateChanged(rho.StateScriptableObject oldState, rho.StateScriptableObject newState) { if (_playShiftSound && oldState != _gameMode && newState == _gameMode) { _plateShiftSound.Play(); } }
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; } }
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); } }