StatSlider.SetStatIdAndSource
Declaration#
public virtual void SetStatIdAndSource(BasicStats source, string id)Parameters#
| Name | Description |
|---|---|
| source | Source providing Stat information |
| id | Id of Stat to display information for |
Description#
Updates both the Stat Id and source at once and refreshes UI.
Usage#
Example
using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(StatSlider target, BasicStats source, string id) { target.SetStatIdAndSource(source, id); }
}