Ejemplo n.º 1
0
 // 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;
     });
 }
Ejemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        if (!p2dAudioSource)
        {
            p2dAudioSource = GetComponent <P2DAudioSource>();
        }
        if (!p2dSubject)
        {
            p2dSubject = GetComponent <P2DSubject>();
        }

        playerLight.gameObject.SetActive(false);
    }
Ejemplo n.º 3
0
 public abstract float GetVisibilityOf(P2DSubject subject);
Ejemplo n.º 4
0
 public abstract void UpdateSubjectVisibility(P2DSubject subject);