// Start is called before the first frame update void Start() { if (!perception) { perception = GetComponent <P2DSubject>(); } perception.hearEvent.AddListener((P2DSound sound, float audioLevel) => { _lastSoundHeard = sound; _heardSound = true; }); }
// Start is called before the first frame update void Start() { if (!p2dAudioSource) { p2dAudioSource = GetComponent <P2DAudioSource>(); } if (!p2dSubject) { p2dSubject = GetComponent <P2DSubject>(); } playerLight.gameObject.SetActive(false); }
public abstract float GetVisibilityOf(P2DSubject subject);
public abstract void UpdateSubjectVisibility(P2DSubject subject);