void OnCollisionEnter2D(Collision2D other) { if (other.gameObject.tag == "Enemy") { listenerCollision.collisionAction(gameObject, other.gameObject); } }
public void notifyListenerOfActionOfCollision() { listener.collisionAction(gameObject, otherObj, direction == DirectionFire.UP); }