private void BoughtItem(ShopItem.ShopItemType itemType) { switch (itemType) { // Pickups case ShopItem.ShopItemType.Bomb: GameDataController.EnableBombAbility(); break; case ShopItem.ShopItemType.Void: GameDataController.EnableVoidPickup(); break; case ShopItem.ShopItemType.Time: GameDataController.EnableTimePickup(); break; case ShopItem.ShopItemType.Repair: GameDataController.EnableRepairPickup(); break; // Health case ShopItem.ShopItemType.Health_2: GameDataController.SetPlayerHealthLevel(2); break; case ShopItem.ShopItemType.Health_3: GameDataController.SetPlayerHealthLevel(3); break; case ShopItem.ShopItemType.Health_4: GameDataController.SetPlayerHealthLevel(4); break; // Shield case ShopItem.ShopItemType.Shield_1: GameDataController.SetPlayerShieldArmor(1); break; case ShopItem.ShopItemType.Shield_2: GameDataController.SetPlayerShieldArmor(2); break; case ShopItem.ShopItemType.Shield_3: GameDataController.SetPlayerShieldArmor(3); break; case ShopItem.ShopItemType.Shield_4: GameDataController.SetPlayerShieldArmor(4); break; // Shot case ShopItem.ShopItemType.Shot_1: GameDataController.SetShotLevel(1); break; case ShopItem.ShopItemType.Shot_2: GameDataController.SetShotLevel(2); break; case ShopItem.ShopItemType.Shot_3: GameDataController.SetShotLevel(3); break; // Speed case ShopItem.ShopItemType.Speed_1: GameDataController.SetSpeedLevel(1); break; case ShopItem.ShopItemType.Speed_2: GameDataController.SetSpeedLevel(2); break; case ShopItem.ShopItemType.Speed_3: GameDataController.SetSpeedLevel(3); break; } }