Creational Patterns
lvcoc
吃到老,玩到老,原来,我已经这么老了
展开
-
Builder建造者模式_C#
建造者模式可以将部件和其组装过程分开,一步一步创建一个复杂的对象。用户只需要指定复杂对象的类型就可以得到该对象,而无须知道其内部的具体构造细节 using UnityEngine; using System.Collections; using System.Collections.Generic; public class BuilderStructure : MonoBehaviour...原创 2019-02-25 10:32:10 · 116 阅读 · 0 评论 -
Builder建造者模式(二)_C#
比如说买交通工具,我们只需要告诉厂家我们要买什么类型,具体的组件我们不用知道 using System; using UnityEngine; using System.Collections; using System.Collections.Generic; namespace BuilderPatternExample1 { public class BuilderPatte...原创 2019-02-25 10:44:14 · 166 阅读 · 0 评论