Documentation for the Unity C# Library
Loading...
Searching...
No Matches
ActivateAndHighlightOnSelection.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3
4namespace PixoVR.Event
5{
10 {
11 public event Action OnFunctionFinished;
12
13 public void FunctionFinished()
14 {
15
16 }
17
18 public void StartStep(StepItem stepItem, StepFunction function, List<InteractableClass> interactables = null, Action onStepSkipped = null)
19 {
20 if (interactables != null)
21 {
22 foreach (var interactable in interactables)
23 {
24 interactable.Interactive(true);
25 interactable.WaitForSelection();
26 }
27 }
28
29 OnFunctionFinished?.Invoke();
30 }
31 }
32}
Interactive (true) method call and highlight on objects function (when a laser pointer is pointed at ...
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.
[Serializable]
Definition StepItem.cs:12
Basic interface of functions. (Please note that iStep is a wrong name)
Definition IStep.cs:10