Exemplo n.º 1
0
    private void Awake()
    {
        if (_soundRingEmitter == null)
        {
            _soundRingEmitter = GetComponent <SoundRingEmitter>();
        }

        _soundRingEmitter.emissionTimeout = 0;
    }
Exemplo n.º 2
0
    private void Awake()
    {
        _currentMovementSpeed = movementSpeed;

        if (_characterController == null)
        {
            _characterController = GetComponent <CharacterController>();
        }

        if (_soundRingEmitter == null)
        {
            _soundRingEmitter = GetComponent <SoundRingEmitter>();
        }
    }