Documentation for the Unity C# Library
Loading...
Searching...
No Matches
CheckAlreadyInspection.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using UnityEngine;
4
5namespace PixoVR.Event
6{
8 {
9 public event Action OnFunctionFinished;
10
11 public void StartStep(
12 StepItem stepItem,
13 StepFunction function,
14 List<InteractableClass> interactables,
15 Action onStepSkipped = null
16 )
17 {
18 Debug.Log("CheckAlreadyInspection : IStep");
19
20 if (interactables != null)
21 {
22 foreach (var item in interactables)
23 {
24 item.CheckInspectionStatus();
25 }
26 }
27
29 }
30
31 public void FunctionFinished()
32 {
33 OnFunctionFinished?.Invoke();
34 }
35 }
36}
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