摘要: 1. 创建一个货物类,包含长、宽、高、重量、颜色、标签等属性,并定义一个列表用于存储所有货物对象。 public class Cargo { public float length; public float width; public float height; public float weig 阅读全文
posted @ 2023-04-28 08:43 多见多闻 阅读(177) 评论(0) 推荐(0)
摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; public class TruckLoader : MonoBehaviour { // 货物信息结构体 public struct Car 阅读全文
posted @ 2023-04-28 08:27 多见多闻 阅读(191) 评论(0) 推荐(0)