21 lines
558 B
GDScript
21 lines
558 B
GDScript
extends TextureRect
|
|
|
|
class_name FightEnermyCard
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready() -> void:
|
|
pass # Replace with function body.
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta: float) -> void:
|
|
pass
|
|
|
|
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.
|