コード例 #1
0
 private void Start()
 {
     player = GameObject.Find("FPSController");
     anim   = GetComponent <EnemyAnimation>();
     info   = GetComponent <EnemyStatusInfo>();
     ///ai = GetComponent<EnemyAI>();
 }
コード例 #2
0
 private void Start()
 {
     player = GameObject.Find("FPSController");
     info   = GetComponent <EnemyStatusInfo>();
     anim   = GetComponent <EnemyAnimation>();
     motor  = GetComponent <EnemyMotor>();
     gun    = GetComponentInChildren <Gun>();
 }