public override void Interact(int potionFlags) { int startingHealth = health; base.Interact(potionFlags); if (startingHealth == health) { // please make something better for this HomebrewGame.CreateFloatingText(transform.position, ":(", Color.white); } }
public virtual void OnDamage(int amount) { HomebrewGame.CreateFloatingText(transform.position, amount + "", Color.red); SetHealth(); }
// i attached a slime sprite renderer to the zone but it's just there so // that you can see where-ish they are public override void Interact(int potionFlags) { HomebrewGame.CreateFloatingText(transform.position, "Hit zone", Color.blue); }