示例#1
0
 // Use this for initialization
 void Start()
 {
     ai = GetComponent <UnityStandardAssets.Characters.ThirdPerson.AICharacterControl>();
     ChangeTarget(points[0]);
     ai.moveSpeed = 0.5f;
     state        = State.patroling;
     portal       = GetComponent <PatrolPortal>();
 }
示例#2
0
 public void AddPatrol(PatrolPortal portal)
 {
     patrolPortlas.Add(portal);
 }