08 2023 档案
摘要:## 在Editor模式中执行组件内部的public字段/方法 > 1.确定绑定的组件 2. 创建GUI按钮 ``` [CustomEditor(typeof(Camera))] public class TestInspector : Editor { /// /// Inspector扩展,在对
阅读全文
摘要:## 模板模式 > 子类可以继承父类的方法 ## 单例模式 ### 饿汉式 > 游戏一开始就加载 `private static T instance =new T();` ### 懒汉式 ![](https://img2023.cnblogs.com/blog/2760352/202308/276
阅读全文