PlayerCharacterStats.GrantCustomReward
Declaration#
public virtual void GrantCustomReward(string id)Parameters#
| Name | Description |
|---|---|
| id | Id of the Custom Reward to grant |
Description#
Grants player a custom reward
Usage#
Example
using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(PlayerCharacterStats source) { string id = source.database.customRewards[0].info.id; source.GrantCustomReward(id); }
}Declaration#
public virtual void GrantCustomReward(GDTKLevelReward reward)Parameters#
| Name | Description |
|---|---|
| reward | Custom Reward to grant |
Description#
Grants player a custom reward
Usage#
Example
using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(PlayerCharacterStats source) { GDTKLevelReward reward = source.database.customRewards[0]; source.GrantCustomReward(reward); }
}