예제 #1
0
 public static void SubtractFromCountOfPotion(Potion.Type t, int i)
 {
     PotionSelector.PotionElement pe = PotionSelector.GetPotionElementOfType(t);
     pe.SetCount(pe.GetCount() - i);
 }
예제 #2
0
 public static void AddToCountOfPotion(Potion.Type t, int i)
 {
     PotionSelector.PotionElement pe = PotionSelector.GetPotionElementOfType(t);
     pe.SetCount(pe.GetCount() + i);
 }
예제 #3
0
 public static void SetCountOfPotion(Potion.Type t, int i)
 {
     PotionSelector.GetPotionElementOfType(t).SetCount(i);
 }
예제 #4
0
 public static int GetPotionAmount(Potion.Type t)
 {
     PotionSelector.PotionElement pe = PotionSelector.GetPotionElementOfType(t);
     return(pe.GetCount());
 }
예제 #5
0
 public static Sprite GetPotionSprite(Potion.Type t)
 {
     return(PotionSelector.GetPotionElementOfType(t).sprite);
 }
예제 #6
0
 public static GameObject GetPotionPrefab(Potion.Type t)
 {
     return(PotionSelector.GetPotionElementOfType(t).prefab);
 }