Пример #1
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);
        }
    }
Пример #2
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;
        }
    }
 protected void OnExternVarChanged(ExternalVariable <T> sender, T oldValue, T newValue) => ChangeState(oldValue, newValue);
Пример #4
0
 protected virtual void OnEnable()
 {
     _variable = target as ExternalVariable <T>;
 }