Documentation for the Unity C# Library
Loading...
Searching...
No Matches
HideModel.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3
4namespace PixoVR.Event
5{
6 public class HideModel : IStep
7 {
8
9 public event Action OnFunctionFinished;
10
11 public void StartStep(StepItem stepItem, StepFunction function, List<InteractableClass> interactables = null, Action onStepSkipped = null)
12 {
13 if (interactables != null)
14 {
15 foreach (var item in interactables)
16 {
17 item.HideModel();
18 }
19 }
21 }
22
23 public void FunctionFinished()
24 {
25 OnFunctionFinished?.Invoke();
26 }
27 }
28}
void FunctionFinished()
Called to end current step and start a next one.
Definition HideModel.cs:23
void StartStep(StepItem stepItem, StepFunction function, List< InteractableClass > interactables=null, Action onStepSkipped=null)
Definition HideModel.cs:11
[Serializable]
Definition StepItem.cs:12
Basic interface of functions. (Please note that iStep is a wrong name)
Definition IStep.cs:10