PlayerCharacterStats.preventLevelGain
public bool preventLevelGain { get; set; }Description#
Gets/Sets whether to suspend Level Gaining. When changing from false to true any and all Levels that were suspended will be added in sequence.
Usage#
Example
using NullSave.GDTK.Stats;using System.Collections;using UnityEngine;
public class Example : MonoBehaviour{
public PlayerCharacterStats source;
public IEnumerator ExampleMethod() { source.preventLevelGain = true; yield return new WaitForSeconds(30); source.preventLevelGain = false; }
}