02 2024 档案
摘要:介绍 封装的消息机制 使用 注册消息 Reg(MessageType messageType, MessageDelHandle handle); messageType : 注册消息类型 handle :消息传入时回调方法(该方法需拥有参数Message) 注销消息 UnReg(MessageTy
阅读全文
摘要:内容 代码 public class Singleton<T> where T : new() { private static T _instance; public static T Instance { get { if (_instance == null) { _instance = ne
阅读全文
摘要:介绍 Addressables是Unity官方推出的用于资源热更的系统,可在Package Manager里面下载。 安装 可在Package Manager里面下载、安装即可使用 配置 Addressables 配置 使用 基础 Addressables 使用 远程分发 Addressables
阅读全文
摘要:概念 时间戳 时间戳就是当前时间距离1970年1月1日0点0时0分0秒(转换成北京时间是1970年1月1日8点0时0分0秒)距离你要计算的时间的秒数或者毫秒数。 总结: TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); 被
阅读全文