Documentation for the Unity C# Library
Loading...
Searching...
No Matches
TurnOnObjects.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using PixoVR.Core;
4
5namespace PixoVR.Event
6{
11 public class TurnOnObjects : IStep
12 {
13 public event Action OnFunctionFinished;
14 public void StartStep(StepItem stepItem, StepFunction function, List<InteractableClass> interactables, Action onStepSkipped = null)
15 {
16 foreach (var item in interactables)
17 {
18 item.TurnOnOffState(true);
19 }
20
22 }
23
24 public void FunctionFinished()
25 {
26 OnFunctionFinished?.Invoke();
27 }
28 }
29}
[Serializable]
Definition StepItem.cs:12
TurnOnOff (On) method call function. This is often used to include the initial state of an object.
void FunctionFinished()
Called to end current step and start a next one.
void StartStep(StepItem stepItem, StepFunction function, List< InteractableClass > interactables, Action onStepSkipped=null)
Basic interface of functions. (Please note that iStep is a wrong name)
Definition IStep.cs:10