物理引擎:刚体碰撞关系及触发消息传递

function OnTriggerEnter(other :Collider)

{

      Destroy(other.gameObject);//碰撞之后销毁物体

}

猜你喜欢

转载自blog.csdn.net/qq_15119013065/article/details/81483424