private void Awake() { _slots = new [] { new Slot(SlotType.Light), new Slot(SlotType.Med), new Slot(SlotType.Heavy) }; HP = 100; _levelData = _levelStorage.GetShipLevel(1); }
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); }