void OnTriggerEnter2D(Collider2D other) { if (other.gameObject.tag == "Player") { PlayerEvents.EventsHappen(gameObject.tag, time); } }
void OnTriggerEnter2D() { PlayerEvents.EventsHappen(gameObject.tag, time); }