void Awake() { for (int i = 0; i < luaComponenetName.Count; i++) { LuaComponent lua = CreateLuaComponent(luaComponenetName[i]); if (lua != null) { lua.modelName = luaComponenetName[i]; lua.content = this; lua.Awake(); luaComponenetList.Add(lua); } } }
static int Awake(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); VisowFrameWork.LuaComponent obj = (VisowFrameWork.LuaComponent)ToLua.CheckObject <VisowFrameWork.LuaComponent>(L, 1); obj.Awake(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }