15 lines
419 B
GDScript
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.
|