标签: c# unity3d game-physics
所以我做了子弹,但它不断与地图的触发点发生冲突
void OnTriggerEnter2D(Collider2D collision) { Enemy_Health enemy = collision.GetComponent<Enemy_Health>(); if(enemy != null ) { enemy.TakeDmg(damage); } Destroy(gameObject); }