item stack pop item, minigame additem method
This commit is contained in:
@@ -7,7 +7,8 @@ public class EssenceNodeController : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private AudioSource chime;
|
||||
|
||||
|
||||
public Inventory playerInventory;
|
||||
|
||||
public bool isTouched;
|
||||
private bool followPlayer = false;
|
||||
@@ -58,6 +59,7 @@ public class EssenceNodeController : MonoBehaviour
|
||||
{
|
||||
yield return new WaitForSeconds(2f);
|
||||
//TODO: Update value in player inventory
|
||||
playerInventory.AddItem(GetComponent<ItemData>());
|
||||
Destroy(gameObject);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user