Platformer 2.0

This commit is contained in:
2026-07-07 19:03:53 -07:00
commit db83628775
23 changed files with 323 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
extends Resource
class_name TransitionCondition
var _callable: Callable
func _init(callable: Callable = Callable()) -> void:
_callable = callable
func evaluate(data: Object) -> bool:
if _callable.is_valid():
var result = _callable.call(data)
if result is bool:
return result
else:
push_warning("Transition callable did not return boolean! Returning false.")
return false
return true