using System.Collections; using System.Collections.Generic; using UnityEngine; using XRTool.Util; namespace ShadowStudio.Model { /// /// 模型播放器 /// public class ModelPlayer : ArtPlay { private ArtInfo info; public ArtInfo Info { get => info; set => info = value; } public virtual void AddToNode(Object obj) { var tmp = obj as GameObject; if (tmp) { //GameNode.Instance.SetParent(ObjNode.World, tmp.transform, Vector3.zero, Vector3.zero, Vector3.one, false); } } public virtual ArtContainer CreateContainer() { return ArtInfoMgr.Instance.CreateContainer(Info.ArtType); } public virtual bool IsNeedInstance() { return true; } public virtual bool IsNeedLoad() { return true; } public virtual void SetData(ArtInfo info, string containerName = "") { this.Info = info; } } }