Documentation for the Unity C# Library
Loading...
Searching...
No Matches
HighlightObject.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using PixoVR.Core;
4using UnityEngine;
5
6namespace PixoVR.Event
7{
11 public class HighlightObject : IStep
12 {
13 public event Action OnFunctionFinished;
14
15 public void StartStep(
16 StepItem stepItem,
17 StepFunction function,
18 List<InteractableClass> interactables,
19 Action onStepSkipped = null
20 )
21 {
22 Debug.Log("HighlightObject : IStep");
23
24 foreach (var item in interactables)
25 {
26 item.Highlight(true);
27 }
28
30 }
31
32 public void FunctionFinished()
33 {
34 OnFunctionFinished?.Invoke();
35 }
36 }
37}
Highlight on objects function.
void StartStep(StepItem stepItem, StepFunction function, List< InteractableClass > interactables, 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