rename Attack to AttackHitbox for clarity

This commit is contained in:
2025-02-27 17:05:57 +09:00
parent 3f1f4b1811
commit 9293b1c96b
6 changed files with 46 additions and 21 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ func process_physics(delta: float) -> State:
if not subject.is_on_floor(): return %Fall
if has_node("%Dead") and subject.dead: return %Dead
if has_node("%Lunge") and %Input.primary_interact and (not has_node("%AttackCooldown") or %AttackCooldown.time_left == 0): return %Lunge
if has_node("%Attack") and %Input.primary_interact and (not has_node("%AttackCooldown") or %AttackCooldown.time_left == 0): return %Attack
if input_direction.length() < 0.05: return
if has_node("%Walk") and %Input.walk: return %Walk
return %Run