Exemplo n.º 1
0
        public void Load()
        {
            _isLoaded = false;

            Action load = () =>
            {
                _cell     = OverwatchDataManager.Load(_index);
                _isLoaded = true;

                UpdateManager.Instance.OnUpdate += TimeUpdate;
            };

            ThreadTaskQueuer.AddTask(load);
        }
Exemplo n.º 2
0
        public void Save(OverwatchMemoryCell cell)
        {
            OverwatchInfo.SetFramesAmount(OverwatchInfo.MomentsAmount + cell.Size);
            OverwatchInfo.SetCellsAmount(OverwatchInfo.CellsAmount + 1);
            var number = _index;

            _index++;

            Action save = () =>
            {
                OverwatchDataManager.Save(cell, number);
            };

            ThreadTaskQueuer.AddTask(save);
        }