| 12345678910111213141516171819202122232425262728293031323334353637 | using System.Collections.Generic;namespace GFGGame{    public class StorageDataManager : SingletonBase<StorageDataManager>    {        private Dictionary<int, int> _storangeInfoById = new Dictionary<int, int>();        public void Clear()        {            _storangeInfoById.Clear();        }        public void InitStorageInfo(int key, int value)        {            if (!_storangeInfoById.ContainsKey(key))            {                _storangeInfoById.Add(key, value);            }            _storangeInfoById[key] = value;        }        public int GetStorageValue(int key)        {            if (!_storangeInfoById.ContainsKey(key))            {                return 0;            }            return _storangeInfoById[key];        }        public Dictionary<int, int> GetStorangeDic()        {            return _storangeInfoById;        }    }}
 |