Skip to main content

GDTKStat.GetValue

Declaration#

public Double GetValue(string formula, StatSource other)

Parameters#

NameDescription
formulaFormula to solve
otherOther Stat Source

Description#

Get the value of a formula

Usage#

Example
using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(GDTKStat target)    {        double result = target.GetValue("health + 2");    }
}