示例#1
0
 // Use this for initialization
 void Start()
 {
     GetWaypoints();
     GetSoldiers();
     script = GameObject.FindObjectOfType <panicTrigger>();
 }
示例#2
0
 // Use this for initialization
 void Start()
 {
     animator     = GetComponent <Animator>();
     navMeshAgent = GetComponent <NavMeshAgent>();
     script       = GameObject.FindObjectOfType <panicTrigger>();
 }
示例#3
0
 private void Start()
 {
     script = GameObject.FindObjectOfType <panicTrigger>();
 }