public void SetData(DataEntity data) { var oldDataEntity = Data; Data = data; SetNewDataEvent.Invoke(oldDataEntity, Data); }
public void SetData(DataSlot dataSlot) { var oldDataSlot = _dataSlotConcrete; _dataSlotConcrete = (T)dataSlot; SetNewDataEvent.Invoke(oldDataSlot, _dataSlotConcrete); //Debug.Log($"{oldDataSlot} => {_dataSlotConcrete})"); }