14 lines
261 B
C#
14 lines
261 B
C#
|
using UnityEngine;
|
|||
|
|
|||
|
public class BaseItem : MonoBehaviour, IInteractable
|
|||
|
{
|
|||
|
[SerializeField]
|
|||
|
private float _scoreAdd = 0;
|
|||
|
|
|||
|
public virtual void Interact()
|
|||
|
{
|
|||
|
PlayerSetup.Instance.AddScore(_scoreAdd);
|
|||
|
Destroy(gameObject);
|
|||
|
}
|
|||
|
}
|