12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using XRTool.Util;
- namespace ShadowStudio.Model
- {
- /// <summary>
- /// 模型播放器
- /// </summary>
- 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;
- }
- }
- }
|