public void OnHighlight( eSHOPITEMHIGHLIGHT _highlight) { highlight = _highlight; if (highlightSprites == null) return; if (_highlight == eSHOPITEMHIGHLIGHT.eSHOPITEMHIGHLIGHT_NONE) { if (highlightSprites != null) { foreach (SimpleSprite sprite in highlightSprites) sprite.gameObject.SetActive(false); } return; } // disable all foreach (SimpleSprite sprite in highlightSprites) sprite.gameObject.SetActive(false); if( _highlight != eSHOPITEMHIGHLIGHT.eSHOPITEMHIGHLIGHT_NONE && _highlight != eSHOPITEMHIGHLIGHT.eSHOPITEMHIGHLIGHT_NOTHING) { int idx = (int)_highlight - 2; if( highlightSprites[idx] != null) highlightSprites[idx].gameObject.SetActive( true); } }
public Store_Item_Info_Table(Store_Item_Type type, int key, string id, int count, int _recommendIdx = 0, eSHOPITEMHIGHLIGHT _highlight = eSHOPITEMHIGHLIGHT.eSHOPITEMHIGHLIGHT_NONE) { Type = type; Key = key; ID_String = id; ID = -1; Count = count; Highlight = _highlight; }
public Store_Item_Info_Table() { Key = -1; ID = -1; Count = 0; SetItemID = 0; DescID = 0; ID_String = "-1"; Highlight = eSHOPITEMHIGHLIGHT.eSHOPITEMHIGHLIGHT_NONE; Price = 0; MainCategory = eCashStoreMainCategory.NONE; SubCategory = eCashStoreSubCategory.NONE; }
public Store_Item_Info_Table(Store_Item_Type _storeItemType, int _key, int _itemID, int _count, int _itemDescID, int _setItemID, eSHOPITEMHIGHLIGHT _highlight, int _price, eCashStoreMainCategory _mainCategory, eCashStoreSubCategory _subCategory) { Type = _storeItemType; Key = _key; ID = _itemID; Count = _count; DescID = _itemDescID; SetItemID = _setItemID; ID_String = _itemID.ToString(); Highlight = _highlight; Price = _price; MainCategory = _mainCategory; SubCategory = _subCategory; }
public new int ByteArrayToClass(byte[] data) { System.IO.MemoryStream ms = new System.IO.MemoryStream(data); System.IO.BinaryReader br = new System.IO.BinaryReader(ms); nChargeSlot = br.ReadInt32(); strIAPProductID = br.ReadBytes(AsGameDefine.MAX_CHARGE_IAPPRODUCTID + 1); eChargeType = (eCHARGETYPE)br.ReadInt32(); nChargeCount = br.ReadUInt64(); nBonusCount = br.ReadUInt64(); eShopItemHighLight = (eSHOPITEMHIGHLIGHT)br.ReadInt32(); nRemainTime = br.ReadInt32(); br.Close(); ms.Close(); return 0; }