Example #1
0
    void onReciveError(Arale.Engine.EventMgr.EventData ed)
    {
        Debug.LogError("onReciveError");
        NetClient nc = ed.data as NetClient;

        nc.Close();
    }
Example #2
0
        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;
        }
Example #3
0
        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);
            }
        }
Example #4
0
        void onAnimActionMessage(EventMgr.EventData eb)
        {
            ActionMask am = (ActionMask)eb.data;

            play(am);
        }
Example #5
0
 void onNetDisconnet(Arale.Engine.EventMgr.EventData ed)
 {
     Debug.LogError("onNetDisconnet");
 }
Example #6
0
 void onNetConnect(Arale.Engine.EventMgr.EventData ed)
 {
     Debug.LogError("onNetConnect");
 }
Example #7
0
 void OnWaitEvent(EventMgr.EventData eb)
 {
     EventMgr.single.RemoveListener("Sitcom." + waitEvent, OnWaitEvent);
     waitEvent = null;
     RunNextAction();
 }