mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-06 14:10:55 +03:00
Improve code style (#1021)
* Remove unnecessary use of `self`
* Connect to signals directly over `connect("name")`
* Use `call_deferred` on callables over `call_deferred("name"))`
* Emit signals directly over `emit_signal("name"...)`
This commit is contained in:
@@ -22,7 +22,7 @@ var viewport_start_size := Vector2(
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
get_viewport().size_changed.connect(self.update_resolution_label)
|
||||
get_viewport().size_changed.connect(update_resolution_label)
|
||||
update_resolution_label()
|
||||
|
||||
# Disable V-Sync to uncap framerate on supported platforms. This makes performance comparison
|
||||
|
||||
Reference in New Issue
Block a user