protected override void ClearEvent() { m_loader.Detach(LOAD_EVT.PROGRESS, onLoadEvt); m_loader.Detach(LOAD_EVT.COMPLETE, onLoadEvt); CCApp.UnschUpdate(Step); }
protected override void SetupEvent() { m_loader.Attach(LOAD_EVT.PROGRESS, onLoadEvt, null); m_loader.Attach(LOAD_EVT.COMPLETE, onLoadEvt, null); CCApp.SchUpdate(Step); }
override protected void __Clear() { QuitGame(); LoadMgr.Clear(); CCApp.Clear(); Log.Info("MainEntry Clear", this); }
/// <summary> /// /// </summary> /// <param name="params_"> /// [0] 游戏GameObj根 /// </param> override protected void __Setup(params object[] params_) { base.__Setup(); GameObject root = params_[0] as GameObject; Log.Info("MainEntry Setup", this); CCApp.resMgr = new ResMgr(); CCApp.soundMgr = new SoundMgr(root); CCApp.Setup(root); LoadMgr.Setup(); }
void OnLoadReqProg(IProgress prog_) { ProgData prog = prog_ as ProgData; CCApp.StartCoroutine(ProcessInit(prog)); }