added: item pickups with online persistency
This commit is contained in:
24
Assets/Scripts/Items/Item.cs
Normal file
24
Assets/Scripts/Items/Item.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Collections.Generic;
|
||||
using Unity.Netcode;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Reset.Items{
|
||||
public abstract class Item : ScriptableObject{
|
||||
public string itemName{ get; set; }
|
||||
|
||||
public float permanency;
|
||||
public float essenceRequiredForPermanency;
|
||||
|
||||
private Event onDropDelegates;
|
||||
|
||||
public void DropItem(){
|
||||
|
||||
}
|
||||
|
||||
public virtual ItemDrop CreateItemDropFrom(){
|
||||
ItemDrop newItemDrop = new GameObject().AddComponent<ItemDrop>();
|
||||
newItemDrop.item = this;
|
||||
return newItemDrop;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user