OLD_STEP_LIST_EDITOR
Documentation for the Unity C# Library
Loading...
Searching...
No Matches
OpenInspectionMenuForItem.cs
Go to the documentation of this file.
1
using
System;
2
using
System.Collections;
3
using
System.Collections.Generic;
4
using
PixoVR.Core
;
5
using
PixoVR.Event
;
6
using
UnityEngine;
7
8
namespace
PixoVR.Event
9
{
13
public
class
OpenInspectionMenuForItem
:
IStep
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);
20
FunctionFinished
();
21
}
22
23
public
void
FunctionFinished
()
24
{
25
OnFunctionFinished
?.Invoke();
26
}
27
}
28
}
PixoVR.Event.OpenInspectionMenuForItem
Function of showing the inspection report for the current interactable object.
Definition
OpenInspectionMenuForItem.cs:14
PixoVR.Event.OpenInspectionMenuForItem.StartStep
void StartStep(StepItem stepItem, StepFunction function, List< InteractableClass > interactables=null, Action onStepSkipped=null)
Definition
OpenInspectionMenuForItem.cs:17
PixoVR.Event.OpenInspectionMenuForItem.OnFunctionFinished
Action OnFunctionFinished
Definition
OpenInspectionMenuForItem.cs:15
PixoVR.Event.OpenInspectionMenuForItem.FunctionFinished
void FunctionFinished()
Called to end current step and start a next one.
Definition
OpenInspectionMenuForItem.cs:23
PixoVR.Event.StepFunction
[Serializable]
Definition
StepFunction.cs:13
PixoVR.Event.StepItem
[Serializable]
Definition
StepItem.cs:12
PixoVR.Event.IStep
Basic interface of functions. (Please note that iStep is a wrong name)
Definition
IStep.cs:10
PixoVR.Core
Definition
EventBetter.cs:14
PixoVR.Event
Definition
ItemIDAttribute.cs:5
com.pixovr.eventunitysdk
Runtime
Sdk
Scripts
IStepScripts
OpenInspectionMenuForItem.cs
Generated
Wed Oct 9 2024 19:24:02
by Doxygen version
1.10.0