static int Awake(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); MsgCenter obj = (MsgCenter)ToLua.CheckObject <MsgCenter>(L, 1); obj.Awake(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }