Documentation for the Unity C# Library
Loading...
Searching...
No Matches
TurnOffObjects.cs
Go to the documentation of this file.
1using System;
2using System.Collections;
3using System.Collections.Generic;
4using PixoVR.Core;
5using UnityEngine;
6
7namespace PixoVR.Event
8{
12 public class TurnOffObjects : IStep
13 {
14 public event Action OnFunctionFinished;
15
16 public void StartStep(StepItem stepItem, StepFunction function, List<InteractableClass> interactables, Action onStepSkipped = null)
17 {
18 foreach (var item in interactables)
19 {
20 item.TurnOnOffState(false);
21 }
22
24 }
25
26 public void FunctionFinished()
27 {
28 OnFunctionFinished?.Invoke();
29 }
30 }
31}
[Serializable]
Definition StepItem.cs:12
TurnOnOff (Off) method call function.
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