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