//**********************************************//
//作者:#李云峰#
//日期:#2015.07.14#
//简述:#管理ICON的脚本#
//*********************************************//
using UnityEngine;
using System.Collections;
using Thousandto.Code.Center;
using Thousandto.Plugins.Common;
namespace Thousandto.GameUI.Form
{
///
/// 使用此类,其所属gameobject子对象必须有Icon
///
public class UIIcon : UIIconBase
{
#region//虚函数
protected override UISprite OnLoadIconSprite()
{
var iconTrans = transform.Find("Icon");
if (iconTrans != null)
return iconTrans.GetComponent();
else
return transform.GetComponent();
}
#endregion
}
}