public void AddPotion() { potionInBottle.SetPotionName(potionToPull.GetPotionName()); potionInBottle.SetPotionColor(potionToPull.GetPotionColor()); potionInBottle.SetPotionProperty(potionToPull.GetPotionProperty()); potionInBottle.SetPotionColorIntensity(potionToPull.GetPotionColorIntensity()); potionInBottle.SetPotionProperyIntensity(potionToPull.GetPotionProperyIntensity()); Debug.Log("I have a potion in me! It's name is " + potionInBottle.GetPotionName() + "!"); }
void Update() { if (heatIndex < 0) { if (isHot == true) { isHot = false; } heatIndex = 0; heatText.text = "Current Heat Level: 0" + "\n" + "I'm Cold!"; } else if (heatIndex >= 100) { if (isHot == false) { isHot = true; } heatIndex = 100; heatText.text = "Current Heat Level: 100" + "\n" + "I'm Hot!"; } else { if (isHot) { heatText.text = "Current Heat Level: " + heatIndex + "\n" + "I'm Hot!"; } else if (!isHot) { heatText.text = "Current Heat Level: " + heatIndex + "\n" + "I'm Cold!"; } } heatIndex -= Time.deltaTime; potionText.text = "Potion in the Pot:" + "\n" + potionInPot.GetPotionName(); }
void MakePotion(string one, string two, string three) { if (one == "Eyeball" && two == "Tail" || one == "Tail" && two == "Eyeball") { potionInPot.SetPotionName("Melty Sad Boi"); potionInPot.SetPotionColor("Blue"); potionInPot.SetPotionProperty("Acidic"); Debug.Log("I made a potion! It's a " + potionInPot.GetPotionName() + "!"); } else { materials.Clear(); } }
public string GetNPCPotion() { return(myPotion.GetPotionName()); }