예제 #1
0
 public IItemInfo GetItemInfo(IItemInfo.ItemType _itemType)
 {
     if (listItems == null || listItems.Count == 0)
     {
         Debug.LogError("listItems is NULL");
         return(null);
     }
     for (int i = 0; i < listItems.Count; i++)
     {
         if (listItems [i].itemType == _itemType)
         {
             return(listItems [i]);
         }
     }
     return(null);
 }
예제 #2
0
 public RewardDetail(IItemInfo.ItemType _itemType, long _quantity)
 {
     itemType  = _itemType;
     quantity  = _quantity;
     _itemInfo = GameInformation.instance.GetItemInfo(itemType);
 }