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