摘要: public class L1 : MonoBehaviour { // Start is called before the first frame update void Start() { //Mathf和Math //Math是C#中封装好的用于数学计算的工具类,在System命名空间中 / 阅读全文
posted @ 2025-03-19 19:52 cannedmint 阅读(34) 评论(0) 推荐(0)
摘要: public class L1 : MonoBehaviour { void Start() { //PlayerPrefs是unity提供的可以用于存储读取玩家数据的公共类 //PlayerPrefs的数据存储类似于键值对存储 //提供了3种数据存储方法 int float string //键: 阅读全文
posted @ 2025-03-19 19:05 cannedmint 阅读(39) 评论(0) 推荐(0)