Example #1
0
        public static int CreateLuaObject(string path)
        {
            var id        = ObjectBuilder.InstantiateUIElement();
            var component = ObjectBuilder.Get((int)id.Number).AddComponent <LuaObjectComponent>();

            component.Load(path);
            return((int)id.Number);
        }
Example #2
0
 public static DynValue Instantiate(string path)
 {
     return(ObjectBuilder.InstantiateUIElement(path));
 }