item stack pop item, minigame additem method

This commit is contained in:
joonasp
2022-04-03 09:40:36 +03:00
parent 5d197d0958
commit e671f77c77
6 changed files with 201 additions and 310 deletions

View File

@@ -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);
}