Inheritance: MonoBehaviour
Esempio n. 1
0
 private void Start()
 {
     player           = GameObject.FindGameObjectWithTag("Player");
     minionAgent      = transform.GetComponentInChildren <NavMeshAgent>();
     mobAnimator      = GetComponent <MobAnimator>();
     startingPosition = transform.position;
 }
Esempio n. 2
0
    private void Start()
    {
        basicAnimator = GetComponent <BasicAnimator>();
        try
        {
            mobAnimator = GetComponent <MobAnimator>();
        }
        catch (Exception ex)
        {
            Debug.Log(ex);
            Debug.Log("Couldn't find mob animator or boss animator");
            throw;
        }
        curHealth = maxHealth;

        OnMinionDeath += DisableComponents;
        OnMinionDeath += SpawnRune;
        healthScale    = minionHealth.transform.localScale;
    }
Esempio n. 3
0
 void Start()
 {
     mobAnimator = GetComponent <MobAnimator>();
     Loop();
 }