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