コード例 #1
0
    /// <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;
    }
コード例 #2
0
 public static void SetReadableVariable(ReadableVar var)
 {
     ReadVariables.Add(var);
 }