Cleanup
This commit is contained in:
@ -37,7 +37,7 @@ func _ready():
|
||||
Global.camera = self
|
||||
update_look_offset()
|
||||
|
||||
func _unhandled_input(event):
|
||||
func _unhandled_input(event: InputEvent):
|
||||
if !event.is_action("look"):
|
||||
return
|
||||
|
||||
@ -47,7 +47,7 @@ func _unhandled_input(event):
|
||||
false:
|
||||
end_look()
|
||||
|
||||
func _input(event):
|
||||
func _input(event: InputEvent):
|
||||
if event.is_action_pressed("zoom_in", true):
|
||||
target_distance -= zoom_speed
|
||||
on_distance_changed()
|
||||
@ -72,7 +72,7 @@ func _input(event):
|
||||
|
||||
update_look_offset()
|
||||
|
||||
func _process(delta):
|
||||
func _process(delta: float):
|
||||
if !Global.player:
|
||||
return
|
||||
|
||||
|
Reference in New Issue
Block a user