コード例 #1
0
 // Use this for initialization
 void Start()
 {
     player   = GameObject.FindGameObjectWithTag("Player");
     BMPlayer = player.GetComponent <BMPlayer> ();
     //soldier = GameObject.transform.parent;
     VassalList = soldier.GetComponent <VassalList> ();
     Vassals    = VassalList.Vassals;
 }
コード例 #2
0
ファイル: BMEnemyArcher.cs プロジェクト: uraffululz/BloodMage
 void Start()
 {
     player      = GameObject.FindGameObjectWithTag("Player");
     allowFollow = true;
     allowAttack = true;
     rb          = GetComponent <Rigidbody> ();
     eNav        = GetComponent <UnityEngine.AI.NavMeshAgent> ();
     VassalList  = GetComponent <VassalList> ();
     BMMelee     = GameObject.Find("MeleeEmpty").GetComponent <BMMeleeScript> ();
 }