22 lines
378 B
C#
22 lines
378 B
C#
using UnityEngine;
|
|
|
|
namespace UIWidgets
|
|
{
|
|
public class TabIconActiveButton : TabIconButton
|
|
{
|
|
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.white : Color.clear);
|
|
}
|
|
}
|
|
}
|
|
}
|