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