OLD_STEP_LIST_EDITOR
Documentation for the Unity C# Library
Loading...
Searching...
No Matches
ActivateAndHighlight.cs
Go to the documentation of this file.
1
using
System;
2
using
System.Collections.Generic;
3
using
UnityEngine;
4
5
namespace
PixoVR.Event
6
{
10
public
class
ActivateAndHighlight
:
IStep
11
{
12
public
event
Action
OnFunctionFinished
;
13
21
public
void
StartStep
(
22
StepItem
stepItem,
23
StepFunction
function
,
24
List<InteractableClass> interactables,
25
Action onStepSkipped =
null
26
)
27
{
28
Debug.Log(
"ActivateAndHighlight : IStep"
);
29
30
if
(interactables !=
null
)
31
{
32
foreach
(var item
in
interactables)
33
{
34
item.Interactive(
true
);
35
36
item.Highlight(
true
);
37
}
38
}
39
40
FunctionFinished
();
41
}
42
43
public
void
FunctionFinished
()
44
{
45
OnFunctionFinished
?.Invoke();
46
}
47
}
48
}
PixoVR.Event.ActivateAndHighlight
Interactive (true) method call and highlight on objects function.
Definition
ActivateAndHighlight.cs:11
PixoVR.Event.ActivateAndHighlight.FunctionFinished
void FunctionFinished()
Called to end current step and start a next one.
Definition
ActivateAndHighlight.cs:43
PixoVR.Event.ActivateAndHighlight.OnFunctionFinished
Action OnFunctionFinished
Definition
ActivateAndHighlight.cs:12
PixoVR.Event.ActivateAndHighlight.StartStep
void StartStep(StepItem stepItem, StepFunction function, List< InteractableClass > interactables, Action onStepSkipped=null)
Activate grab posibility and highlight interactable objects.
Definition
ActivateAndHighlight.cs:21
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.Event
Definition
ItemIDAttribute.cs:5
com.pixovr.eventunitysdk
Runtime
Sdk
Scripts
IStepScripts
ActivateAndHighlight.cs
Generated
Wed Oct 9 2024 19:24:02
by Doxygen version
1.10.0