Example #1
0
    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));
        }
    }
Example #2
0
 public void AddAlliee(Alliee npc)
 {
     allAlliees.Add(npc);
 }