void HandleMaxOnBaseValueChanged(CRValue sender, float f, float t) { //maintain the same percentage when the max value changes currentValue = max.activeValue * _percent; }
void HandleMaxOnRemoveModifier(CRValue sender, CRModifier modifier) { //maintain the same percentage when the max value changes currentValue = max.activeValue * _percent; }
void FindSourceValue() { if (_manager && baseType == CRAttributeModifierBaseType.ATTRIBUTE) sourceValue = _manager.GetAttribute(sourceType); }