private void OnTriggerStay(Collider other)
{
if (enemy == null)
{
if (other.gameObject.tag == "Crip")
{
if (other.gameObject.GetComponent<Crip>().isMyTeam != gameObject.GetComponent<Crip>().isMyTeam)
{
enemy = other.transform;
prior = Priority.Enemy;
}
}
else
return;
}
else
return;
}