public override Action Update() { Alliee target = GetClosest(_npcManager.allAlliees); if (target != null) { return(new Action(movement.FORWARD, false, GetLookRotation(target))); } else { return(new Action(movement.NONE, false, 0.0f)); } }
public void AddAlliee(Alliee npc) { allAlliees.Add(npc); }