Exemple #1
0
    static void CloseUIWindowCallBack(UIWindowBase UI, params object[] objs)
    {
        UISystemEvent.Dispatch(UI, UIEvent.OnClose);  //派发OnClose事件
        try
        {
            UI.OnClose();
        }
        catch (Exception e)
        {
            Debug.LogError(UI.UIName + " OnClose Exception: " + e.ToString());
        }

        AddHideUI(UI);
    }
 static int OnClose(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UIWindowBase obj = (UIWindowBase)ToLua.CheckObject(L, 1, typeof(UIWindowBase));
         obj.OnClose();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #3
0
    public static void CloseUIWindowCallBack(UIWindowBase l_UI, params object[] l_objs)
    {
        UISystemEvent.Dispatch(l_UI, UIEvent.OnDestroy);  //派发OnDestroy事件
        try
        {
            l_UI.OnClose();
        }
        catch (Exception e)
        {
            Debug.LogError("OnClose Exception: " + e.ToString());
        }

        l_UI.RemoveAllEvent();
        AddHideUI(l_UI);
    }
Exemple #4
0
    static void CloseUIWindowCallBack(UIWindowBase l_UI, params object[] l_objs)
    {
        UISystemEvent.Dispatch(l_UI, UIEvent.OnClose);  //派发OnClose事件
        try
        {
            l_UI.OnClose();
        }
        catch (Exception e)
        {
            Debug.LogError("OnClose Exception: " + e.ToString());
        }

        l_UI.gameObject.SetActive(false);
        AddHideUI(l_UI);
    }
    static void CloseUIWindowCallBack(UIWindowBase UI, params object[] objs)
    {
        UI.windowStatus = UIWindowBase.WindowStatus.Close;
        UISystemEvent.Dispatch(UI, UIEvent.OnClose);  //派发OnClose事件
        try
        {
            UI.OnClose();
        }
        catch (Exception e)
        {
            Debug.LogError(UI.UIName + " OnClose Exception: " + e.ToString());
        }

        UIStackManager.OnUIClose(UI);
        AddHideUI(UI);

        UISystemEvent.Dispatch(UI, UIEvent.OnClosed);  //派发OnOpened事件
    }