示例#1
0
 void Start()
 {
     weapon = this.transform.GetComponentInChildren(typeof(WeaponController)).GetComponent <WeaponController> ();
 }
 void Start()
 {
     weaponManager = this.GetComponent <WeaponController> ();
 }