12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using XRTool.Util;
- using SC.XR.Unity.Module_InputSystem;
- using System;
- using System.Linq;
- using ShadowStudio.Model;
- namespace ShadowStudio.Tool
- {
-
-
-
-
-
-
-
-
-
-
-
-
- public class ObjectCreator : UnitySingleton<ObjectCreator>
- {
-
-
-
- public void CreateObject(ArtInfo artInfo)
- {
- if (artInfo.InstaceType == InstaceType.AssetBundle)
- {
- }
- else if (artInfo.InstaceType == InstaceType.ExtralURLDownload)
- {
- }
- else if (artInfo.InstaceType == InstaceType.LocalPath)
- {
- }
- else if (artInfo.InstaceType == InstaceType.ResourceLoad)
- {
- var obj = Resources.Load(artInfo.Url);
- if (obj)
- {
- }
- }
- else if (artInfo.InstaceType == InstaceType.UnityBase)
- {
- GameObject.CreatePrimitive((PrimitiveType)int.Parse(artInfo.Url));
- }
- }
- }
- }
|