void onReciveError(Arale.Engine.EventMgr.EventData ed) { Debug.LogError("onReciveError"); NetClient nc = ed.data as NetClient; nc.Close(); }
static void DownLoadCallBack(EventMgr.EventData eb) { FileDownLoad fdl = eb.data as FileDownLoad; if (null == fdl._onDownload) { return; } fdl._onDownload(fdl); if (fdl.state == State.Doing) { return; } fdl._onDownload = null; }
void OnWindowMessage(EventMgr.EventData eb) { WinMsg wm = eb.data as WinMsg; if (wm.winName == null) { //广播 foreach (Window item in mWindows.Values) { item.OnWindowMessage(wm.metho, wm.param); } } else { Window w = GetWindow(wm.winName, false); if (w == null) { return; } w.OnWindowMessage(wm.metho, wm.param); } }
void onAnimActionMessage(EventMgr.EventData eb) { ActionMask am = (ActionMask)eb.data; play(am); }
void onNetDisconnet(Arale.Engine.EventMgr.EventData ed) { Debug.LogError("onNetDisconnet"); }
void onNetConnect(Arale.Engine.EventMgr.EventData ed) { Debug.LogError("onNetConnect"); }
void OnWaitEvent(EventMgr.EventData eb) { EventMgr.single.RemoveListener("Sitcom." + waitEvent, OnWaitEvent); waitEvent = null; RunNextAction(); }