随笔分类 -  Unity

摘要:MVC框架模式,相信很多人都不会陌生,数据-控制-显示分离的工作方式或者叫做代码结构会使软件(游戏)的结构清晰化,逻辑更明了。但由于MVC框架模式各部件都可以与彼此进行沟通,造成了很多新人在使用MVC的时候消息满天飞,解耦没成,耦合度更高了。我建议在使用MVC的时候,制定策略,让消息单向化,不要双向 阅读全文
posted @ 2016-06-06 11:45 半步_天涯 阅读(4738) 评论(0) 推荐(0)
摘要:1 using UnityEngine; 2 using System.Collections; 3 4 public class CharactorCreation : MonoBehaviour { 5 public GameObject[] prefabs; //在Inspector中赋值的数 阅读全文
posted @ 2016-02-02 22:47 半步_天涯 阅读(242) 评论(0) 推荐(0)
摘要:1 using UnityEngine; 2 using UnityEditor; 3 using System; 4 5 public class AutoSave : EditorWindow { 6 7 private bool autoSaveScene = true; 8 private 阅读全文
posted @ 2016-01-19 11:22 半步_天涯 阅读(159) 评论(0) 推荐(0)
摘要:1 using UnityEngine; 2 using System.Collections; 3 4 public class Bird : MonoBehaviour { 5 6 public float timer = 0; 7 public int freamNumber = 10; // 阅读全文
posted @ 2015-11-05 20:07 半步_天涯 阅读(203) 评论(0) 推荐(0)