using UnityEngine;
using UnityEngine.UI;
using System.Collections;
namespace UIWidgets {
///
/// TabIconActiveButton.
///
public class TabIconActiveButton : TabIconButton {
///
/// Sets the data.
///
/// Tab.
public override void SetData(TabIcons tab)
{
Name.text = tab.Name;
if (Icon!=null)
{
Icon.sprite = tab.IconActive;
if (SetNativeSize)
{
Icon.SetNativeSize();
}
Icon.color = (Icon.sprite==null) ? Color.clear : Color.white;
}
}
}
}