QFramework.LuaMain.AddLuaComponent C# (CSharp) Method

AddLuaComponent() public static method

public static AddLuaComponent ( GameObject go, string path ) : QLuaComponent
go UnityEngine.GameObject
path string
return QLuaComponent
		public static QLuaComponent AddLuaComponent(GameObject go, string path)  
		{  
			QLuaComponent luaComp = go.AddComponent<QLuaComponent>();  
			luaComp.Initilize(path);  // 手动调用脚本运行,以取得LuaTable返回值  
			return luaComp;
		}