public static lhControlNetwork GetInstance(lhNetwork network) { if (m_instance != null) { return(null); } m_network = network; return(m_instance = new lhControlNetwork()); }
static int GetInstance(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); LaoHan.Network.lhNetwork arg0 = (LaoHan.Network.lhNetwork)ToLua.CheckObject(L, 1, typeof(LaoHan.Network.lhNetwork)); LaoHan.Control.lhControlNetwork o = LaoHan.Control.lhControlNetwork.GetInstance(arg0); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }