示例#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;
 }