摘要:
using System.Collections.Generic; using UnityEngine; public class Timer { //自动释放 private readonly bool autoRelease; //回调 private readonly TimerMngr.Callback func; //间隔时间 priv... 阅读全文
摘要:
using System; public class Singleton where T : class, new() { private static readonly T s_Instance; static Singleton() { s_Instance = Activator.CreateInstance(); } publ... 阅读全文
摘要:
项目开发过程中经常会用到代理事件,为方便管理,避免代码混乱,需要一个总的事件管理器: 阅读全文