Exemple #1
0
    void Update()
    {
        if (_source == null)
        {
            return;
        }

        if (_config == null)
        {
            _config.SetConfiguration(_source);
        }
        _volume.Update(Time.unscaledDeltaTime);
        if (_source != null)
        {
            _source.volume = _volume.Value * _config.Volume;
        }

        if (_anchor != null)
        {
            transform.position = _anchor.position;
        }
    }
Exemple #2
0
 public void Update(float delta)
 {
     _animator.Update(delta);
 }