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