Example #1
0
 private void InitValues()
 {
     _startLocalPos        = AttachedObject.GetValue <Vector3>("_startLocalPos");
     _endLocalPos          = AttachedObject.GetValue <Vector3>("_endLocalPos");
     _interactVolume       = AttachedObject.GetValue <SingleInteractionVolume>("_interactVolume");
     _owAudioSourceOneShot = AttachedObject.GetValue <OWAudioSource>("_owAudioSourceOneShot");
     _owAudioSourceLP      = AttachedObject.GetValue <OWAudioSource>("_owAudioSourceLP");
 }
        private void Awake()
        {
            _attentionPoint ??= transform;
            _initialized    = false;
            _interactVolume = this.GetRequiredComponent <SingleInteractionVolume>();
            GlobalMessenger.AddListener("DialogueConditionsReset", new Callback(OnDialogueConditionsReset));
            GlobalMessenger <DeathType> .AddListener("PlayerDeath", new Callback <DeathType>(OnPlayerDeath));

            enabled = false;
        }