摘要:
架构演化学习思考(3) 接上一篇我们继续对命令模式进行学习。 在这节内容中,我们聊一下经典的命令模式,还记得上一篇文章开头我们实现的简单的命令模式吗?来看代码,非常简单易解。 public interface ICommand { void Execute(); } public class Pla 阅读全文
摘要:
编辑器中获取选中的文件夹、文件路径 using UnityEditor; using UnityEngine; using Object = UnityEngine.Object; public class MyEditorScript { [MenuItem("Assets/PrintSelect 阅读全文
摘要:
[14]lua调用使用C#中的事件和委托 C#脚本:继续在Student类中声明 //声明委托和事件 public UnityAction dele; public event UnityAction eventAction; public void DoDele() { if (dele != n 阅读全文
摘要:
[12] lua中调用ref 和 out 修饰参数的函数数值 public int RefCompute(int a, ref int b, ref int c, int d) { b += a; c += d; return b + c; } public int OutCompute(int a 阅读全文