示例#1
0
 // Use this for initialization
 void Start()
 {
     money = 10;
     heath = heath.GetComponent <health>();
 }
示例#2
0
 // Use this for initialization
 void Start()
 {
     agent  = GetComponent <NavMeshAgent>();
     heath  = 5;
     hea1th = hea1th.GetComponent <health>();
 }