25 lines
395 B
C#
25 lines
395 B
C#
|
using System;
|
||
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using BITKit;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace BITFALL.Items
|
||
|
{
|
||
|
public class WorldItemObject : MonoBehaviour,IWorldItemObject
|
||
|
{
|
||
|
public IBasicItem Item
|
||
|
{
|
||
|
get => _item;
|
||
|
set
|
||
|
{
|
||
|
_item = value;
|
||
|
OnSetItem?.Invoke(_item);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public event Action<IBasicItem> OnSetItem;
|
||
|
private IBasicItem _item;
|
||
|
}
|
||
|
}
|