// 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; }
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> (); }