void AddGoldEffect(EffectValueTransferModule evt) { MathfLerp(gold, _goldModule.syncGoldField [0].gold, (r) => { gold = r; Draw(); }, 0.5f); ShowSubLabel(Constants.INCREASE_LABEL, transform, evt.GetValue <float>("gold"), deltaTime: 0.5f); }
void AddEnergyEffect(EffectValueTransferModule evt) { MathfLerp(energy, _energyModule.syncEnergyField [0].energy, (r) => { energy = r; Draw(); }, 0.5f); ShowSubLabel(Constants.INCREASE_LABEL, transform, evt.GetValue <float>("energy"), deltaTime: 0.5f); }
void AddHpEffect(EffectValueTransferModule evt, uint targetNetId) { if (_character.netId.Value != targetNetId) { return; } MathfLerp(hp, _hpModule.syncHpField [0].hp, (r) => { hp = r; Draw(); }, 0.5f); ShowSubLabel(Constants.INCREASE_LABEL, transform, evt.GetValue <float>("damage"), deltaTime: 0.5f); }