private void OnTriggerEnter(Collider other) { if (other.gameObject.name == "Player") { Event.BotTriggerEnter(other.gameObject.transform); } }