buckshotroulette-decomp/ItemGridIndicator.gd

13 lines
338 B
GDScript3
Raw Normal View History

2024-01-20 12:17:43 +00:00
class_name GridIndicator extends Node
@export var roundManager : RoundManager
@export var animator : AnimationPlayer
@export var parent: Node3D
func ShowGridIndicator():
parent.visible = true
animator.play("show")
roundManager.playerData.indicatorShown = true
await get_tree().create_timer(1, false).timeout
parent.visible = false