Esempio n. 1
0
        private void Awake()
        {
            _slots = new [] { new Slot(SlotType.Light), new Slot(SlotType.Med), new Slot(SlotType.Heavy) };
            HP     = 100;

            _levelData = _levelStorage.GetShipLevel(1);
        }
Esempio n. 2
0
        void LoadPreset()
        {
            if (preset == null)
            {
                return;
            }

            preset.ApplyLevels();

            TrySetItemToSlot(preset.LightSlot.ItemBase);
            TrySetItemToSlot(preset.MediumSlot.ItemBase);
            TrySetItemToSlot(preset.HeavySlot.ItemBase);

            _levelData = _levelStorage.GetShipLevel(preset.ShipStartLevel);
        }