1
Fork 0
slime-blood-and-pain/Assets/Scripts/Item.cs

17 lines
407 B
C#
Raw Normal View History

2019-04-28 12:11:21 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Item : Entity
{
2019-04-28 13:29:17 +00:00
protected override void Start() {
base.Start();
2019-04-28 12:11:21 +00:00
overlappable = true;
}
public virtual void OnPickup(Player player) {
Debug.LogWarning("OnPickup not overridden");
2019-04-28 13:29:17 +00:00
turnHandler.WriteToMessageBar("Picked up [NULL].");
Destroy(gameObject);
2019-04-28 12:11:21 +00:00
}
}