Harvestable Destroy

This commit is contained in:
j.mei7
2022-02-18 20:38:23 +01:00
parent 3ff90d47c2
commit d36ddacc4e
6 changed files with 31 additions and 12 deletions

View File

@@ -1,11 +1,20 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TreeInteraction : Harvestable
{
Inventory playerInv;
[SerializeField]
List<Item> drops = new List<Item>();
private void Start()
{
playerInv = GameObject.Find("Player").GetComponent<Inventory>();
toolType = ToolType.AXE;
}
@@ -19,6 +28,13 @@ public class TreeInteraction : Harvestable
}
public override void Interact()
{
// TODO
// ADD DROPS TO INVENTORY
// START ANIMATION
// DURABILITY ON TOOL
Debug.Log("Harvest BAUM");
Destroy(gameObject);
}
}