Documentation for the Unity C# Library
Loading...
Searching...
No Matches
SetAdditionalParamsForItem.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3
4namespace PixoVR.Event
5{
7 {
8
9 public event Action OnFunctionFinished;
10 public void StartStep(StepItem stepItem, StepFunction function, List<InteractableClass> interactables = null, Action onStepSkipped = null)
11 {
12 interactables?[0].SetParametersForItem(function.value, function.additionalValues);
14 }
15
16 public void FunctionFinished()
17 {
18 OnFunctionFinished?.Invoke();
19 }
20 }
21}
void FunctionFinished()
Called to end current step and start a next one.
void StartStep(StepItem stepItem, StepFunction function, List< InteractableClass > interactables=null, Action onStepSkipped=null)
[Serializable]
Definition StepItem.cs:12
Basic interface of functions. (Please note that iStep is a wrong name)
Definition IStep.cs:10