Files
UltimateFishing/Assets/Scripts/Assembly-CSharp/UIWidgets/TabIconDefaultButton.cs
2026-02-21 16:45:37 +08:00

22 lines
380 B
C#

using UnityEngine;
namespace UIWidgets
{
public class TabIconDefaultButton : TabIconButton
{
public override void SetData(TabIcons tab)
{
Name.text = tab.Name;
if (Icon != null)
{
Icon.sprite = tab.IconDefault;
if (SetNativeSize)
{
Icon.SetNativeSize();
}
Icon.color = ((!(Icon.sprite == null)) ? Color.white : Color.clear);
}
}
}
}