Beispiel #1
0
    private void Awake()
    {
        _source = GetComponentInChildren <AudioSource>();

        _vfxController = FindObjectOfType <VFXControllerComponent>();
        _sFXController = FindObjectOfType <SFXControllerComponent>();
    }
    protected override void Awake()
    {
        base.Awake();

        _cameraController = FindObjectOfType <CameraControllerComponent>();
        _vfxController    = FindObjectOfType <VFXControllerComponent>();
        _sfxController    = FindObjectOfType <SFXControllerComponent>();

        enabled = false;
    }