protected override void RegisterStaticInventoryCache(IItemSpecCache cache) { InventoryHandler persister = null; if (UseFileDataStore) { persister = new InventoryHandler(this); persister.Init(); } StaticInventoryCache.Instance = new InventoryCache(Engine, persister, persister); _inventoryCache = StaticInventoryCache.Instance; }
// Use this for initialization void Start() { m_InventoryHandler.Init(); }