예제 #1
0
    // Start is called before the first frame update
    void Start()
    {
        health             = maxHealth;
        currentHealth      = maxHealth;
        takingIceDamage    = false;
        frozen             = false;
        takingPoisonDamage = false;
        isWet = false;
        takingElectricDamage = false;

        aiden = PlayerManager.instance.player.gameObject;
        gun   = aiden.GetComponentInChildren <Gun>();

        agent        = GetComponent <NavMeshAgent>();
        enemyTactics = GetComponent <EnemyTactics>();

        animator = GetComponent <Animator>();
        animator.SetBool("Dead", false);

        hitAnimationTimer = Random.Range(3f, 6f);
    }
예제 #2
0
 // Start is called before the first frame update
 void Start()
 {
     enemyTactics = GetComponent <EnemyTactics>();
 }