Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 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> ();
 }