Esempio n. 1
0
 protected virtual void OnTriggerExit(Collider other)
 {
     if (other.tag == "Player")
     {
         otherUnit = null;
     }
 }
Esempio n. 2
0
    protected virtual void OnTriggerEnter(Collider other)
    {
        if (other.tag == "PlayerArrow")
        {
            chaseTarget = GameManager.Instance.PlayerTransform;
        }


        if (other.tag == "Player")
        {
            //플레이어를 쫓음
            chaseTarget = GameManager.Instance.PlayerTransform;
            //ChaseTarget();
            otherUnit = other.GetComponent <IFightUnit>();
        }
    }