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