tnt graphics, bug fixes, folder organization

This commit is contained in:
2026-03-28 20:47:10 -05:00
parent 57b14d4ba9
commit 6491a3df11
45 changed files with 10533 additions and 148 deletions
+27
View File
@@ -0,0 +1,27 @@
using UnityEngine;
public class Shovel : Tool
{
[Header("Shovel Parameters")]
public Animator shovelAnimator;
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)
{
Diggable diggable = other.GetComponent<Diggable>();
if (diggable != null)
{
diggable.Dig();
}
}
}