Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     // associate functions to be called when perception becomes either alerted or unalerted
     if (Perception != null)
     {
         Perception.OnAlerted.AddListener(OnAlerted);
         Perception.OnUnalerted.AddListener(OnUnalerted);
     }
     if (StatCollection != null)
     {
         StatCollection.SetupCollection();
     }
 }