they do not call me the ui designer

This commit is contained in:
reisenlol 2026-01-15 23:55:42 -08:00
parent daf3218043
commit 68af10bc4d
No known key found for this signature in database
14 changed files with 1677 additions and 125 deletions

View file

@ -19,7 +19,7 @@ public class MeleeWeapon : Weapon
if (Input.GetMouseButtonDown(0))
{
RaycastHit2D[] enemyList = Physics2D.BoxCastAll(transform.position, colliderSize, Vector3.Angle(transform.position, mouseWorldPos),
PlayerEntityMovement.instance.mouseWorldPos, 100f, entityLayer);
PlayerEntityMovement.instance.mouseWorldPos, 2, entityLayer);
foreach (RaycastHit2D enemy in enemyList)
{
if (!enemy.transform.CompareTag(tag) && enemy.transform.TryGetComponent(out Entity isEntity))
@ -28,7 +28,7 @@ public class MeleeWeapon : Weapon
}
}
isAiming = false;
thisEntity.hasAttacked = true;
thisEntity.actions--;
TurnHandler.instance.UpdateTurns();
ActionUIHandler.instance.UpdateUI();
debugColliderHitbox.gameObject.SetActive(false);