Esempio n. 1
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> ();
 }
Esempio n. 2
0
    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);
    }
Esempio n. 3
0
 void Start()
 {
     rb      = GetComponent <Rigidbody>();
     BMMelee = GameObject.Find("MeleeEmpty").GetComponent <BMMeleeScript> ();
 }