2using System.Collections;
3using System.Collections.Generic;
4using System.Threading.Tasks;
17 Action onStepSkipped =
null)
19 if (
int.TryParse(
function.value, out
int value))
25 Debug.Log(
"Parse error. Use int number format");
31 await Task.Delay(delayInSeconds * 1000);
Next function execution delay in seconds function.
void StartStep(StepItem stepItem, StepFunction function, List< InteractableClass > interactables=null, Action onStepSkipped=null)
async void DelayInvoke(int delayInSeconds)
Action OnFunctionFinished
void FunctionFinished()
Called to end current step and start a next one.
Basic interface of functions. (Please note that iStep is a wrong name)