private void OnTriggerStay(Collider other) { if (other.CompareTag("Player")) { motor.ChaseTarget(other.transform); if (Vector3.Distance(other.transform.position, transform.position) <= selfStats.range.GetValue()) { player = other.transform; playerStats = other.GetComponent <CharacterStats>(); } } }