private void OnCollisionEnter2D(Collision2D collision) { if (collision.gameObject.tag == "Player") { Debug.Log("Map Move"); MoveMap?.Invoke(this, type); } }
private void OnTriggerEnter2D(Collider2D collision) { if (collision.tag == "Player") { Debug.Log("Map Move"); MoveMap?.Invoke(this, type); } }