摘要:
using System.Collections.Generic; using UnityEngine; public class Timer { //自动释放 private readonly bool autoRelease; //回调 private readonly TimerMngr.Callback func; //间隔时间 priv... 阅读全文
posted @ 2016-12-02 21:18
土汉
阅读(183)
评论(0)
推荐(0)
摘要:
using System; public class Singleton where T : class, new() { private static readonly T s_Instance; static Singleton() { s_Instance = Activator.CreateInstance(); } publ... 阅读全文
posted @ 2016-12-02 21:08
土汉
阅读(155)
评论(0)
推荐(0)
摘要:
项目开发过程中经常会用到代理事件,为方便管理,避免代码混乱,需要一个总的事件管理器: 阅读全文
posted @ 2016-12-02 20:16
土汉
阅读(436)
评论(0)
推荐(0)