2using System.Collections;
3using System.Collections.Generic;
16 Action onStepSkipped =
null)
18 if (interactables ==
null)
return;
20 foreach (var interactable
in interactables)
22 if (
string.IsNullOrEmpty(
function.value))
24 Debug.LogError(
"seconds value is empty");
29 var seconds =
float.Parse(
function.value, System.Globalization.CultureInfo.InvariantCulture);
31 interactable.SetTimer(seconds);
Function of cyclically launching the method after some time specified in the steplist.
void StartStep(StepItem stepItem, StepFunction function, List< InteractableClass > interactables=null, Action onStepSkipped=null)
void FunctionFinished()
Called to end current step and start a next one.
Action OnFunctionFinished
Basic interface of functions. (Please note that iStep is a wrong name)