Пример #1
0
        public static void savePlayerEquip(int slot, EquipEntity obj)
        {
            use_slot = slot;

            if (obj.GetType() != typeof(EquipEntity))
            {
                throw new Exception("SaveData.Service.savePlayerEquip : Invalid type, not EquipEntity.");
            }

            Debug.Log("SaveDataService.savePlayerEquip : slot : " + slot.ToString());
            Debug.Log("SaveDataService.savePlayerEquip : " + obj.name);
            StorageService.save <EquipEntity>(slot, equip_key, obj);
        }