1
Fork 0
slime-blood-and-pain/Assets/Scripts/EntityItemPoisonHeart.cs
2019-04-29 14:35:35 +02:00

20 lines
No EOL
449 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EntityItemPoisonHeart : EntityItem
{
public int damage;
public override string Name {
get {
return "Poisonous Heart";
}
}
public override void OnPickup(EntityPlayer player) {
messageBar.Write("Picked up: " + Name, Color.yellow);
player.hp -= damage;
Destroy(gameObject);
}
}