tool system with switching

This commit is contained in:
2026-03-25 17:58:18 -05:00
parent 17ed6ba3cb
commit 40af32939e
8 changed files with 727 additions and 44 deletions
+7 -2
View File
@@ -1,14 +1,19 @@
using UnityEngine;
public class Shovel : MonoBehaviour
public class Shovel : Tool
{
public Animator shovelAnimator;
public void Dig()
public override void Use()
{
shovelAnimator.SetTrigger("Dig");
}
public override void UseAlt()
{
// no tool
}
// this only works if this script is sitting on the object with the collider!!
private void OnTriggerEnter(Collider other)
{