GDTKItemStatSource.AddStatValue
Declaration#
public void AddStatValue(string id, float addValue)Parameters#
| Name | Description |
|---|---|
| id | Id of the stat to set |
| addValue | Value to add |
Description#
Add to the value of a stat
Usage#
using NullSave.GDTK.Inventory;using UnityEngine;
public class CodeSample : MonoBehaviour{
public void ExampleMethod(GDTKItemStatSource target) { target.AddStatValue(target.statIds[0], 1.2f); }
}