Пример #1
0
    protected void RequestNewTarget()
    {
        GameObject TempTarget = null;

        if (ParentFCS != null)
        {
            TempTarget = ParentFCS.GetNewTarget();
        }

        if (TempTarget != null)
        {
            Target    = TempTarget;
            MyAIState = TurretAIState.FAW;
        }
        else
        {
            MyAIState = TurretAIState.Rest;
        }
    }
Пример #2
0
 public void SetState(TurretAIState a)
 {
     MyAIState = a;
 }