Project_WL/Assets/Script/UI/Shop/ShopMoneyCard.cs

19 lines
628 B
C#
Raw Normal View History

2024-12-15 01:39:39 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ShopMoneyCard : ShopCardBase
{
public GameObject go_best;
public override void Set<T>(T _base)
{
base.Set(_base);
if (m_ShopTableData != null)
{
go_best.SetActive(m_ShopTableData.IsBest);
labels[1].transform.localPosition = m_ShopTableData.PriceType == ePriceType.Cash ? new Vector3(96.35f, 64.6f) : new Vector3(96.35f, 3f);
labels[1].color = m_ShopTableData.Item == eItem.Gold ? new Color32(255, 255, 95, 255) : new Color32(11, 207, 252, 255);
}
}
}