1234567891011121314151617181920212223242526272829303132333435363738 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- namespace ShadowStudio.Model
- {
- /// <summary>
- /// 美术资源的组件接口
- /// 组件依附于容器,并扩展容器的初始化接口
- /// 组件可能是文本,视频窗口,图片容器等等
- /// </summary>
- public interface ArtComponent
- {
- /// <summary>
- /// 初始化容器
- /// </summary>
- /// <param name="art"></param>
- /// <param name="info"></param>
- void SetContainer(ArtContainerHandler container,UnityEngine.Object art, ArtInfo info);
- /// <summary>
- /// 容器的同步
- /// </summary>
- /// <param name="goods"></param>
- /// <param name="smooth"></param>
- void TransferSyn(GoodsInfo goods, bool smooth = true);
- /// <summary>
- /// 发送同步状态
- /// </summary>
- /// <param name="state"></param>
- /// <param name="status"></param>
- void SendTransfer(int state, int status);
- /// <summary>
- /// 获取组件的实例
- /// </summary>
- /// <returns></returns>
- GameObject GetInstace();
- void DestroyArt();
- }
- }
|