20 lines
No EOL
449 B
C#
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.orange);
|
|
player.hp -= damage;
|
|
Destroy(gameObject);
|
|
}
|
|
} |