/// <summary> /// Set variables as classes /// </summary> private static void SetVariables() { var height = new RangeVar("UR_SphereHeight", "float", SphereHeight.ToString(".00"), "0.5", "2.5"); Demo.SetUpdatableVariable(height); var levitate = new BooleanVar("UB_CanLevitate", CanLevitate.ToString()); Demo.SetUpdatableVariable(levitate); var threshold = new ReadableVar("R_Threshold", "value"); Demo.SetReadableVariable(threshold); DataManager.AllVariablesSet = true; }
public static void SetReadableVariable(ReadableVar var) { ReadVariables.Add(var); }