学员(5223)
课程(179)
分享
碰撞检测中小球速度过快时会检测多次,分数会加多次该如何解决
private void OnCollisionEnter(Collision other) { if (other.gameObject.tag == "Cube") {
Debug.Log(other.gameObject.name); Destroy(other.gameObject); score++; Debug.Log(score); }
同学你好,把小球速度调慢或者墙体调厚试一下