Started cutscene system
This commit is contained in:
12
scripts/Cutscene/Event/CutsceneWaitEvent.gd
Normal file
12
scripts/Cutscene/Event/CutsceneWaitEvent.gd
Normal file
@@ -0,0 +1,12 @@
|
||||
class_name CutsceneWaitEvent extends "res://scripts/Cutscene/CutsceneEvent.gd"
|
||||
|
||||
var wait:float = 0.0
|
||||
|
||||
func _init(wait:float) -> void:
|
||||
self.wait = wait
|
||||
|
||||
func update(delta:float) -> void:
|
||||
self.wait -= delta
|
||||
|
||||
func isDone() -> bool:
|
||||
return self.wait <= 0.0
|
Reference in New Issue
Block a user