buckshotroulette-decomp/ItemGridIndicator.gd

13 lines
338 B
GDScript

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