This commit is contained in:
MarcEricMartel
2023-01-15 11:50:58 -05:00
parent 2a2eb8ad1f
commit 2275190f4a
28 changed files with 164 additions and 103 deletions

View File

@@ -36,7 +36,8 @@ func change_weapon(position):
raycast.add_child(current_weapon);
func attack():
if current_weapon: current_weapon.fire(velocity);
if current_weapon:
current_weapon.fire(velocity);
func take_damage(damage):
HP = HP - damage;