MVC
Yuan_bowen
Unity
展开
-
封装好的观察者模式
public class PengYouquan { #region 单例 private static PengYouquan instance; public static PengYouquan Instance { get { if (instance == null) { ...原创 2018-04-18 09:35:48 · 237 阅读 · 0 评论 -
FSM实现敌人简单AI
管理类:using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// 管理类 /// </summary> public class FSMSystem { public Dictionary<StateID, FSMStat...原创 2018-05-03 19:17:51 · 418 阅读 · 0 评论 -
建造者模式
using System.Collections; using System.Collections.Generic; using UnityEngine; public class JianZaoMVC : MonoBehaviour { void Start () { RoleBuilder builder = new ConreteBuilder(); ...原创 2018-05-03 20:20:13 · 91 阅读 · 0 评论 -
装饰者模式
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MVC_ZhuangShiZhe : MonoBehaviour { private void Start() { //实例化宝剑 Sword sword = ne...原创 2018-05-03 21:25:07 · 115 阅读 · 0 评论