Documentation for the Unity C# Library
Loading...
Searching...
No Matches
DeactivateObject.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 DeactivateObject : IStep
9 {
10 public event Action OnFunctionFinished;
11
12 public void StartStep(StepItem stepItem, StepFunction function, List<InteractableClass> interactables = null, Action onStepSkipped = null)
13 {
14 Debug.Log("DeactivateObject : IStep");
15
16 if (interactables != null)
17 {
18 foreach (var item in interactables)
19 {
20 item.Interactive(false);
21 }
22 }
23
25 }
26
27 public void FunctionFinished()
28 {
29 OnFunctionFinished?.Invoke();
30 }
31 }
32}
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