Documentation for the Unity C# Library
Loading...
Searching...
No Matches
StepFunction.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using Sirenix.OdinInspector;
4using UnityEngine;
5
6namespace PixoVR.Event
7{
8 [Serializable]
9 public class StepFunction
10 {
11 [SerializeField] public Function function;
13 [Space] [SerializeField] [CustomValueDrawer("DrawValueProperty")]
14 public string value;
15 [SerializeField]
16 public string [] additionalValues;
18 [Space]
19 [SerializeField] public List<ItemsEnum> itemsForAction; //view, take, highlight, activate
20 [SerializeField] public bool waitForDone;
21 [ReadOnly] public StepItemSO owner;
22 public int GetFunctionId()
23 {
24 return (int) function;
25 }
26#if UNITY_EDITOR
27 public string DrawValueProperty(string value, GUIContent label)
28 {
29 return FunctionValueDrawer.Draw(function, value, label, owner);
30 }
31#endif
32 }
33}
bool waitForDone
[SerializeField]
string[] additionalValues
[SerializeField]
List< ItemsEnum > itemsForAction
[SerializeField]
Function
A list of functions ID that are used by the step manager to call specific methods.
Definition Function.cs:13