void IFsmNode.OnEnter() { AudioPlayerSetting.InitAudioSetting(); // 使用协程初始化 MotionEngine.StartCoroutine(Init()); }
public void Start() { HotfixNetManager.Instance.Create(); FsmManager.Instance.Create(); // 缓存所有的特性 HotfixLog.Log("收集所有热更类的属性并缓存"); { Attribute attribute1 = HotfixTypeHelper.GetAttribute <WindowAttribute>(typeof(UILogin)); ILRManager.Instance.CacheHotfixAttribute(typeof(UILogin), attribute1); Attribute attribute2 = HotfixTypeHelper.GetAttribute <WindowAttribute>(typeof(UIMain)); ILRManager.Instance.CacheHotfixAttribute(typeof(UIMain), attribute2); Attribute attribute3 = HotfixTypeHelper.GetAttribute <WindowAttribute>(typeof(UIMap)); ILRManager.Instance.CacheHotfixAttribute(typeof(UIMap), attribute3); } // 开启协程加载资源 MotionEngine.StartCoroutine(AsyncLoadAssets()); // 测试热更事件 HotfixEventManager.Instance.AddListener <HotfixEventDefine.ClickSkill1Event>(OnHandleEventMessage); HotfixEventManager.Instance.AddListener <HotfixEventDefine.ClickSkill2Event>(OnHandleEventMessage); HotfixEventManager.Instance.AddListener <HotfixEventDefine.ClickSkill3Event>(OnHandleEventMessage); HotfixEventManager.Instance.AddListener <HotfixEventDefine.ClickSkill4Event>(OnHandleEventMessage); HotfixEventManager.Instance.AddListener <HotfixEventDefine.ClickSkill5Event>(OnHandleEventMessage); }
public void Start() { HotfixNetManager.Instance.Create(); FsmManager.Instance.Create(); // 缓存所有的特性 HotfixLog.Log("收集所有热更类的属性并缓存"); { Attribute attribute1 = HotfixTypeHelper.GetAttribute <WindowAttribute>(typeof(UILogin)); ILRManager.Instance.CacheHotfixAttribute(typeof(UILogin), attribute1); Attribute attribute2 = HotfixTypeHelper.GetAttribute <WindowAttribute>(typeof(UIMain)); ILRManager.Instance.CacheHotfixAttribute(typeof(UIMain), attribute2); Attribute attribute3 = HotfixTypeHelper.GetAttribute <WindowAttribute>(typeof(UIMap)); ILRManager.Instance.CacheHotfixAttribute(typeof(UIMap), attribute3); } // 开启协程加载资源 MotionEngine.StartCoroutine(AsyncLoadAssets()); }
void IFsmNode.OnEnter() { PatchEventDispatcher.SendPatchStatesChangeMsg(EPatchStates.DownloadWebFiles); MotionEngine.StartCoroutine(Download()); }
void IFsmNode.OnEnter() { PatchEventDispatcher.SendPatchStepsChangeMsg(EPatchStates.RequestGameVersion); MotionEngine.StartCoroutine(Download()); }
public void StartGame() { GameLog.Log("Hello game world."); MotionEngine.StartCoroutine(LoadAssets()); }
void IFsmNode.OnEnter() { PatchEventDispatcher.SendPatchStepsChangeMsg(EPatchStates.GetWebPatchManifest); MotionEngine.StartCoroutine(Download()); }
void IFsmNode.OnEnter() { PatchEventDispatcher.SendPatchStatesChangeMsg(EPatchStates.ParseAppPatchManifest); MotionEngine.StartCoroutine(DownLoad()); }