private void AddGameToConsole(GameData game, PLATFORM consolePlatform) { switch (consolePlatform) { case PLATFORM.NES: case PLATFORM.SNES: case PLATFORM.GB: case PLATFORM.GBA: case PLATFORM.N64: case PLATFORM.GAME_CUBE: case PLATFORM.DS: case PLATFORM.N3DS: case PLATFORM.WII: case PLATFORM.WIIU: nintendo.AddGame(consolePlatform, game); break; case PLATFORM.PS: case PLATFORM.PS2: case PLATFORM.PSP: case PLATFORM.PS3: case PLATFORM.PS4: case PLATFORM.PS_VITA: sony.AddGame(consolePlatform, game); break; case PLATFORM.XBOX: case PLATFORM.XBOX360: case PLATFORM.XBOXONE: microsoft.AddGame(consolePlatform, game); break; case PLATFORM.SEGA_GENESIS: case PLATFORM.SEGA_GAMEGEAR: case PLATFORM.SEGA_CD: case PLATFORM.SEGA_SATURN: case PLATFORM.SEGA_DREAMCAST: sega.AddGame(consolePlatform, game); break; case PLATFORM.PC: pc.AddGame(consolePlatform, game); break; case PLATFORM.ATARI2600: case PLATFORM.NEO_GEO: case PLATFORM.WONDER_SWAN: case PLATFORM.TG16: case PLATFORM._3DO: case PLATFORM.PCFX: other.AddGame(consolePlatform, game); break; default: Debug.LogError("Couldnt fit platform" + consolePlatform + " for game"); break; } }