protected virtual void RaiseOnSetValue(object sender, IRtValue value, DateTime?updated = null, bool status = true) { Value = value ?? valueNull; Updated = updated ?? DateTime.Now; Status = status; ValueSetted?.Invoke(sender, this); }
public void SetValue(PlayerPropertiesInt properties) { if (properties == _health) { _player.IncreaseHealth(); } else { _playerAttacker.IncreaseDemage(); } properties.SetNextValue(); ValueSetted?.Invoke(_health, _demage); }
private void Start() { ValueSetted?.Invoke(_health, _demage); }
protected virtual void RaiseOnSetValue(IRtTag tag) { ValueSetted?.Invoke(this, tag); }
protected virtual void OnTagValueSetted(object sender, IRtTag e) { ValueSetted?.Invoke(sender, this); }