OLD_STEP_LIST_EDITOR
Documentation for the Unity C# Library
Loading...
Searching...
No Matches
OpenTheDoor.cs
Go to the documentation of this file.
1
using
System;
2
using
System.Collections.Generic;
3
using
PixoVR.Core
;
4
using
UnityEngine;
5
6
namespace
PixoVR.Event
7
{
8
public
class
OpenTheDoor
:
IStep
9
{
10
public
event
Action
OnFunctionFinished
;
11
12
public
void
StartStep
(
StepItem
stepItem,
StepFunction
function
, List<InteractableClass> interactables =
null
, Action onStepSkipped =
null
)
13
{
14
Debug.Log(
"OpenTheDoor : IStep"
);
15
16
if
(interactables !=
null
)
17
{
18
foreach
(var item
in
interactables)
19
{
20
item.Execute();
21
}
22
}
23
24
FunctionFinished
();
25
}
26
27
public
void
FunctionFinished
()
28
{
29
OnFunctionFinished
?.Invoke();
30
}
31
}
32
}
PixoVR.Event.OpenTheDoor
Definition
OpenTheDoor.cs:9
PixoVR.Event.OpenTheDoor.OnFunctionFinished
Action OnFunctionFinished
Definition
OpenTheDoor.cs:10
PixoVR.Event.OpenTheDoor.FunctionFinished
void FunctionFinished()
Called to end current step and start a next one.
Definition
OpenTheDoor.cs:27
PixoVR.Event.OpenTheDoor.StartStep
void StartStep(StepItem stepItem, StepFunction function, List< InteractableClass > interactables=null, Action onStepSkipped=null)
Definition
OpenTheDoor.cs:12
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
OpenTheDoor.cs
Generated
Wed Oct 9 2024 19:24:02
by Doxygen version
1.10.0