Added AbstractActivatableObject

This commit is contained in:
2026-03-15 22:59:24 +03:00
parent 60c36d8666
commit b5b2c7691b
9 changed files with 216 additions and 0 deletions
@@ -0,0 +1,23 @@
class_name AbstractActivatableObject
extends Node2D
@onready var hint_sprite : Sprite2D = $HintSprite
func activate() -> void:
pass
func _ready() -> void:
hint_sprite.hide()
func _on_body_entered(body: Node2D) -> void:
if body is Player:
hint_sprite.show()
func _on_body_exited(body: Node2D) -> void:
if body is Player:
hint_sprite.hide()