Ejemplo n.º 1
0
 public void CallRamdomizedItemKey()
 {
     if (stringseason == "Spring")
     {
         SystemCore.ItemDropKeyGenerator();
         var ItemKey = UnityEngine.Random.Range(1, SystemCore.ItemDropListKey_Spring.Count);
         Debug.Log(SystemCore.ItemDropListKey_Spring.Count);
         Debug.Log(ItemString.ItemStringTable.Count);
         var Amount = UnityEngine.Random.Range(1, 3);
         result_item.text = ItemKey.ToString();
         result_desc.text = Amount.ToString();
     }
     if (stringseason == "Any")
     {
         var Itemkey = UnityEngine.Random.Range(1, SystemCore.ItemDropListKey_Any.Count);
         var Amount  = UnityEngine.Random.Range(1, 4);
         Debug.Log(SystemCore.ItemDropListKey_Any.Count);
         result_item.text = Itemkey.ToString();
         result_desc.text = Amount.ToString();
     }
 }