Ejemplo n.º 1
0
 void Awake()
 {
     if (nonPlayerMode)
     {
         Debug.Log("Enemy E" + enemyIndex.ToString() + " has no Player object; continuing in non-Player-mode");
     }
     alertnessMax = alertnessStep * (int)ALERTSTATE.ALERTNESS2;
     senseState   = SENSESTATE.NONE;
     alertState   = ALERTSTATE.NONE;
     taskState    = TASKSTATE.NONE;
 }
Ejemplo n.º 2
0
 void LateUpdate()
 {
     noticedPlayerIndex = -1;
     senseState         = SENSESTATE.NONE;
 }