PlayerCharacterStats.AddPerk
Declaration#
public virtual GDTKPerk AddPerk(string id, IUniquelyIdentifiable source)Parameters#
| Name | Description |
|---|---|
| id | Id of the Perk to add |
| source | Source associated with request |
Description#
Adds a Perk to the object
Usage#
Example
using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(PlayerCharacterStats source) { string id = source.database.perks[0].info.id; source.AddPerk(id); }
}