challenge-editor/scene/card_state_machine/arrowImg.gd

9 lines
164 B
GDScript3
Raw Normal View History

2024-09-24 17:26:44 +08:00
extends Control
class_name arrowImage
func set_image(texture:Texture2D,scaleto:float):
$Sprite2D.set_texture(texture)
$Sprite2D.scale=Vector2(scaleto,scaleto)