entity changes, classes

This commit is contained in:
reisenlol 2026-01-20 01:52:57 -08:00
parent bda2b88796
commit 8bd4aedcf9
No known key found for this signature in database
20 changed files with 1917 additions and 27 deletions

View file

@ -24,7 +24,7 @@ public class MeleeWeapon : Weapon
{
if (!enemy.transform.CompareTag(tag) && enemy.transform.TryGetComponent(out Entity isEntity))
{
isEntity.TakeDamage(damage);
isEntity.TakeDamage(damage, thisEntity);
}
}
isAiming = false;
@ -32,11 +32,13 @@ public class MeleeWeapon : Weapon
TurnHandler.instance.UpdateTurns();
ActionUIHandler.instance.UpdateUI();
debugColliderHitbox.gameObject.SetActive(false);
ActionUIHandler.instance.cursorObject.SetActive(false);
}
else if (Input.GetMouseButtonDown(1))
{
isAiming = false;
debugColliderHitbox.gameObject.SetActive(false);
ActionUIHandler.instance.cursorObject.SetActive(false);
}
}
}