cast token type to enum value

This commit is contained in:
Jack Case
2025-08-20 08:39:07 -04:00
parent 9526275e3d
commit 343cc37033

View File

@@ -8,7 +8,7 @@ var color_polygon
func _ready():
color_polygon = $Color
type = randi_range(0, 3)
type = randi_range(0, 3) as token_type
match type:
token_type.TYPE_1:
color_polygon.color = Color.RED