问题描述 Unity 碰撞检测失效 检查代码无误 private void OnTriggerEnter2D(Collider2D collision) { if (collision.gameObject.CompareTag("Enemy")) { collision.