challenge-editor/scene/fight_character_card.gd
2024-09-25 18:04:02 +08:00

15 lines
419 B
GDScript

extends TextureRect
class_name FightCharacterCard
@onready var n: Label = $TextureRect/n
@onready var icon: TextureRect = $TextureRect/TextureRect2/icon
func _on_area_2d_area_entered(area: Area2D) -> void:
material.set_shader_parameter("width",10)
pass # Replace with function body.
func _on_area_2d_area_exited(area: Area2D) -> void:
material.set_shader_parameter("width",0)
pass # Replace with function body.