예제 #1
0
        /// <summary>
        /// Sets the data.
        /// </summary>
        /// <param name="tab">Tab.</param>
        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;
            }
        }
예제 #2
0
 /// <summary>
 /// Sets the data.
 /// </summary>
 /// <param name="tab">Tab.</param>
 public virtual void SetData(TabIcons tab)
 {
 }
예제 #3
0
 /// <summary>
 /// Sets the data.
 /// </summary>
 /// <param name="tab">Tab.</param>
 public override void SetData(TabIcons tab)
 {
     Name.text = tab.Name;
 }
예제 #4
0
 public abstract void SetData(TabIcons tab);
예제 #5
0
 /// <summary>
 /// Sets the data.
 /// </summary>
 /// <param name="tab">Tab.</param>
 public virtual void SetData(TabIcons tab)
 {
     Name.text = tab.Name;
 }