public void CreateGamemode() { GameObject newGameMode = GameObject.Instantiate(persistenceService.GetGamemode()); newGameMode.name = "Gamemode"; this.gamemode = newGameMode.GetComponent <OneOnOneRoundBased>(); GameObject newCamera = GameObject.Instantiate(persistenceService.GetCamera()); newCamera.name = "FightingGameCamera"; this.camera = newCamera.GetComponent <FightingGameCamera>(); mapCamera.SetActive(false); playerService.SetMaxPlayers(gamemode.GetMaxPlayers()); }