Update some GDScript files for Godot 4.3 (#1129)

This commit is contained in:
Danil Alexeev
2024-11-04 14:00:59 +03:00
committed by GitHub
parent 7ed5b1c116
commit c492e5fd73
24 changed files with 48 additions and 51 deletions

View File

@@ -42,7 +42,7 @@ func _tile_data_runtime_update(_layer: int, _coords: Vector2i, tile_data: TileDa
func _on_secret_detector_body_entered(body: Node2D) -> void:
if not body is CharacterBody2D:
if body is not CharacterBody2D:
# Detect the player only.
return
@@ -51,7 +51,7 @@ func _on_secret_detector_body_entered(body: Node2D) -> void:
func _on_secret_detector_body_exited(body: Node2D) -> void:
if not body is CharacterBody2D:
if body is not CharacterBody2D:
return
player_in_secret = false