Documentation for the Unity C# Library
Loading...
Searching...
No Matches
ActivateObject.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using UnityEngine;
4
5namespace PixoVR.Event
6{
11 public class ActivateObject : IStep
12 {
13 public event Action OnFunctionFinished;
14
15 public void StartStep(StepItem stepItem, StepFunction function, List<InteractableClass> interactables, Action onStepSkipped = null)
16 {
17 Debug.Log("ActivateObject : IStep");
18 foreach (var item in interactables)
19 {
20 item.Interactive(true);
21 }
22
24 }
25
26 public void FunctionFinished()
27 {
28 OnFunctionFinished?.Invoke();
29 }
30 }
31}
Interactive (true) method call on interactable objects function Often this is used to enable the abil...
void FunctionFinished()
Called to end current step and start a next one.
void StartStep(StepItem stepItem, StepFunction function, List< InteractableClass > interactables, Action onStepSkipped=null)
[Serializable]
Definition StepItem.cs:12
Basic interface of functions. (Please note that iStep is a wrong name)
Definition IStep.cs:10