public CollisionShape[] collisionShapes; //一组受击碰撞体 public void OnDrawGizmos() { if (cullingShape != null) { cullingShape.OnDrawGizmos(); } foreach (CollisionShape shape in collisionShapes) { if (shape != null) { shape.OnDrawGizmos(); } } }
public CollisionShape[] collisionShapes; //一组受击碰撞体 public void OnDrawGizmos() { if (cullingShape != null) { cullingShape.OnDrawGizmos(); } foreach (CollisionShape shape in collisionShapes) { if (shape != null) { shape.OnDrawGizmos(); } } }