public void SetData(DataEntity data)
        {
            var oldDataEntity = Data;

            Data = data;
            SetNewDataEvent.Invoke(oldDataEntity, Data);
        }
Пример #2
0
        public void SetData(DataSlot dataSlot)
        {
            var oldDataSlot = _dataSlotConcrete;

            _dataSlotConcrete = (T)dataSlot;
            SetNewDataEvent.Invoke(oldDataSlot, _dataSlotConcrete);
            //Debug.Log($"{oldDataSlot} => {_dataSlotConcrete})");
        }