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

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

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