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> (); }
void Start() { player = GameObject.FindGameObjectWithTag("Player"); BMMove = GetComponent <BMPlayerMovement> (); BMMelee = GameObject.Find("MeleeEmpty").GetComponent <BMMeleeScript> (); EnemyList = GetComponent <EnemyList>(); //rb = GetComponent<Rigidbody>(); InvokeRepeating("DrainBloodMP", 1.0f, 1.0f); }
void Start() { rb = GetComponent <Rigidbody>(); BMMelee = GameObject.Find("MeleeEmpty").GetComponent <BMMeleeScript> (); }