Exemplo n.º 1
0
    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);
        }
    }
Exemplo n.º 2
0
 public virtual void OnDamage(int amount)
 {
     HomebrewGame.CreateFloatingText(transform.position, amount + "", Color.red);
     SetHealth();
 }
Exemplo n.º 3
0
 // 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);
 }