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,8 @@
using UnityEngine;
using RPG.Combat;
public class CombatTarget : MonoBehaviour
{
// This class is intentionally left empty.
// It serves as a marker to identify combat targets in the game.
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: b8654c3b7c55a404fbedd3d1b66415f2

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

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 0dac85c6432a11746b07d2f6a021e2e4