Added icon and animation to ColorSwitchingPlatform
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user