Esempio n. 1
0
    private void OnTriggerEnter(Collider other)
    {
        if (other.tag == "Player")
        {
            Debug.Log("Werewolf trigger  enter: " + other.name);

            enemyMovement.target = other.transform;

            if (Vector3.Distance(transform.position, enemyMovement.target.position) >= 5)
            {
                StartCoroutine(enemyMovement.HowlAnimation());
            }
        }
    }