From e2867a50da25ed5c2b481b442523be2f67082aff Mon Sep 17 00:00:00 2001 From: dusoleil Date: Sun, 24 Jul 2022 12:57:54 -0400 Subject: Ignore unused arguments --- Chicken.gd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Chicken.gd b/Chicken.gd index 31c6520..1a03c1b 100644 --- a/Chicken.gd +++ b/Chicken.gd @@ -22,7 +22,7 @@ func roll_die(chance): func _physics_process(delta): if !is_on_floor(): - move_and_slide(Vector3.DOWN, Vector3.UP) + var _vmp = move_and_slide(Vector3.DOWN, Vector3.UP) if chasing: state_chasing(delta) return @@ -78,19 +78,19 @@ func state_moving(_delta): mov_velocity *= mov_steps var chasing -func _on_Detection_body_entered(body): +func _on_Detection_body_entered(_body): chasing = true anim[state].travel("MOVING") anim[flap_speed] = 8.0 $SmoothRotation.stop_all() -func _on_Detection_body_exited(body): +func _on_Detection_body_exited(_body): chasing = false anim[state].travel("IDLE") anim[flap_speed] = 2.0 mov_steps = 0.0 -func state_chasing(delta): +func state_chasing(_delta): anim[wings].travel("FLAP") var local_forward = -transform.basis.z.normalized() var chaser = $Detection.get_overlapping_bodies()[0].transform.origin -- cgit v1.2.3