using System.Collections; using System.Collections.Generic; using UnityEngine; public class ShopCloverCard : ShopCardBase { public override void Set(T _base) { if (_base == null) { Act_Repeat_for1sec = null; DSUtil.InActivateGameObjects(gos); return; } m_ShopTableData = _base as ShopTableData; eItemGrade grade = eItemGrade.Common; if (m_ShopTableData.IsRocket) { var sdata = ServerInfo.Ins.m_ServerData; int index = m_ShopTableData.ID - 501; m_ShopTableData.ItemID = sdata.Get_Common(eCommon.CloverShopID_Weapon + index); grade = MyValue.Get_GradebyID(m_ShopTableData.ItemID); m_ShopTableData.Price = grade == eItemGrade.Myth ? 1000 : 500; } base.Set(_base); if (m_ShopTableData.IsRocket) { labels[0].color = Color.white; labels[0].text = DSUtil.Format("{0}{1}", MyValue.Get_GradeColor((int)grade), m_ShopTableData.Get_Name()); } if (m_ShopTableData.Item >= eItem.MemoryField && m_ShopTableData.Item <= eItem.MemoryPetBattle) sprites[0].SetDimensions(77, 77); } }