using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using XRTool.Util;
namespace ShadowStudio.Model
{
///
/// World UI的播放器
///
public class WorldDlgPlayer : 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.WorldCanvas, tmp.transform, Vector3.zero, Vector3.zero, Vector3.one, false);
}
}
public virtual ArtContainer CreateContainer()
{
return ArtInfoMgr.Instance.CreateContainer(ArtType.WorldDlg);
}
///
/// 图片无需实例化
///
///
public virtual bool IsNeedInstance()
{
return true;
}
///
/// 图片需要加载
///
///
public virtual bool IsNeedLoad()
{
return true;
}
public virtual void SetData(ArtInfo info, string containerName = "")
{
this.Info = info;
}
}
}