PlayerCharacterStats.SetRace
Declaration#
public virtual void SetRace(string id)Parameters#
| Name | Description |
|---|---|
| id | Id of the Race to set |
Description#
Set the Race of this object
Usage#
Example
using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(PlayerCharacterStats source) { string id = source.database.races[0].info.id; source.SetRace(id); }
}