You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
327 B
9 lines
327 B
extends "../base.gd"
|
|
|
|
func _init(obj, method: String, arguments: Array, context: String, passed: String, failed: String) -> void:
|
|
passed = passed % ([obj] + arguments)
|
|
failed = failed % ([obj] + arguments)
|
|
self.success = obj.callv(method, arguments)
|
|
self.context = context
|
|
self.result = passed if self.success else failed
|