Ejemplo n.º 1
0
        public void RestoreLastSession()
        {
            ItemCollectionSerializer ics = new ItemCollectionSerializer();

            paramses = ics.Load(ContainerPath);
            ItemList.Clear();
            foreach (Transform t in SlotList)
            {
                foreach (Transform i in t)
                {
                    Destroy(i.gameObject);
                }
            }

            foreach (ItemDataParams i in paramses)
            {
                AddItem(i.ID, i.Amount, i.slotID);
            }
        }
Ejemplo n.º 2
0
        public void RestoreLastSession()
        {
            ItemCollectionSerializer ics = new ItemCollectionSerializer();
            paramses = ics.Load(ContainerPath);
            ItemList.Clear();
            foreach (Transform t in SlotList)
            {
                foreach (Transform i in t)
                {
                    Destroy(i.gameObject);
                }
            }

            foreach (ItemDataParams i in paramses)
            {
                AddItem(i.ID, i.Amount,i.slotID);
            }
        }