Files
Dawn-Godot/scripts/Event/Condition/EventIf.gd

13 lines
236 B
GDScript

class_name EventIf extends "res://scripts/Event/Flow/EventGroup.gd"
func ifCondition() -> bool:
return false
func shouldAutoStart() -> bool:
return false
func start() -> void:
super.start()
if ifCondition():
startEventGroup()