Added icon and animation to ColorSwitchingPlatform

This commit is contained in:
2026-06-17 20:54:53 +03:00
parent 4ea9eea776
commit 8812915d3e
2 changed files with 9 additions and 2 deletions
+9 -1
View File
@@ -3,5 +3,13 @@ class_name ColorSwitchingPlatform
extends AbstractColorPlatform
const SWITCH_TIME = 0.2
func _ready() -> void:
super._ready()
icon_sprite.play(ANIMATION_COLOR_SWITCHING)
func toggle() -> void:
collision_switcher.switch_color()
collision_switcher.switch_color(SWITCH_TIME)
@@ -22,7 +22,6 @@ size = Vector2(16, 7)
[node name="ColorSwitchingPlatform" unique_id=137546339 instance=ExtResource("1_6jqdv")]
script = ExtResource("2_sbqh7")
initial_color = 0
[node name="Sprite2D" parent="." index="0" unique_id=264863796]
texture = SubResource("ViewportTexture_svoke")