Add project files.

This commit is contained in:
caleb Sandford DeQuincey
2025-10-27 17:05:16 +00:00
parent 93cec4de9e
commit 36f31d54d1
7970 changed files with 2179811 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
using UnityEngine;
using RPG.Movement;
namespace RPG.Combat
{
public class Fighter : MonoBehaviour
{
Transform target;
private void Update()
{
if(target != null)
{
GetComponent<Mover>().MoveTo(target.position);
target = null;
}
}
public void Attack(CombatTarget combatTarget)
{
target = combatTarget.transform;
}
}
}