Exemple #1
0
 protected override void OnEnable()
 {
     base.OnEnable();
     _multipliers = Resources.Load <CharacterDamageMultipliers>("RuntimeSets/CharacterDamageMultipliers");
 }
Exemple #2
0
 protected override void Awake()
 {
     base.Awake();
     // the CharacterDamageMultipliers scriptable object must be in a Resources folder inside your project, like so : Resources/RuntimeSets/CharacterDamageMultipliers
     _multipliers = Resources.Load <CharacterDamageMultipliers>("RuntimeSets/CharacterDamageMultipliers");
 }