Esempio n. 1
0
 private void _DestroyUI(BaseUIObject ui, string uiName)
 {
     if (ui.IsOpen())
     {
         ui.Close();
     }
     ui.Destroy();
     GameObject.Destroy(ui.GameObject);
     m_UIObjectDict.Remove(uiName);
 }
Esempio n. 2
0
 static int Destroy(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         ANFramework.BaseUIObject obj = (ANFramework.BaseUIObject)ToLua.CheckObject <ANFramework.BaseUIObject>(L, 1);
         obj.Destroy();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }