1、首先打开unity软件
3、我们添加三个物体(两个正方体和一个圆体)
5、我们输入:(如图所示)if (other.tag == "one") { Destroy(other.gameObject); }