This commit is contained in:
2024-09-09 20:30:24 +08:00
commit f1e9f43ba4
165 changed files with 103426 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
using Event;
using Event.EventArgs;
using Keyboard;
using UnityEngine;
namespace Items.Abstract
{
public abstract class ItemBase : MonoBehaviour
{
private void Start()
{
EventManager.Instance.CameraInterAct += ReceiveEvent;
}
protected virtual void ReceiveEvent(CameraInterActArgs item)
{
if (item.Item != gameObject) return;
}
protected void ActivateItem()
{
Debug.Log("Item is activated");
}
}
}