Documentation for the Unity C# Library
Loading...
Searching...
No Matches
OpenInspectionMenuForItem.cs
Go to the documentation of this file.
1using System;
2using System.Collections;
3using System.Collections.Generic;
4using PixoVR.Core;
5using PixoVR.Event;
6using UnityEngine;
7
8namespace PixoVR.Event
9{
14 {
15 public event Action OnFunctionFinished;
16
17 public void StartStep(StepItem stepItem, StepFunction function, List<InteractableClass> interactables = null, Action onStepSkipped = null)
18 {
19 interactables?[0].OpenInspectionMenu(function.value);
21 }
22
23 public void FunctionFinished()
24 {
25 OnFunctionFinished?.Invoke();
26 }
27 }
28}
Function of showing the inspection report for the current interactable object.
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