public void LaunchMiniGame() { Debug.LogError("Launch MiniGame: " + currentGame.ToString()); if (currentGame == MINIGAMES_ENUM.BOTTLEFLIP) { currentGame = MINIGAMES_ENUM.DYKTW; } else if (currentGame == MINIGAMES_ENUM.GITAHIRO) { currentGame = MINIGAMES_ENUM.KNIFEFINGERS; } else if (currentGame == MINIGAMES_ENUM.MOVIMIENTO) { currentGame = MINIGAMES_ENUM.MATHEMATICS; } switch (currentGame) { case MINIGAMES_ENUM.PONG: SceneManager.LoadScene("Pong"); break; case MINIGAMES_ENUM.GOATTHROW: SceneManager.LoadScene("GoatThrow"); break; case MINIGAMES_ENUM.BILLIARDS: SceneManager.LoadScene("Billiards"); break; case MINIGAMES_ENUM.BOTTLEFLIP: SceneManager.LoadScene("BottleFlip"); break; case MINIGAMES_ENUM.CARROT: SceneManager.LoadScene("Carrot"); break; case MINIGAMES_ENUM.DYKTW: SceneManager.LoadScene("DoYouKnowTheWay"); break; case MINIGAMES_ENUM.GITAHIRO: SceneManager.LoadScene("GitaHiro"); break; case MINIGAMES_ENUM.KNIFEFINGERS: SceneManager.LoadScene("KnifeFingers"); break; case MINIGAMES_ENUM.MSEGADA: SceneManager.LoadScene("MSegada"); break; case MINIGAMES_ENUM.PICKFISH: SceneManager.LoadScene("PickAFish"); break; case MINIGAMES_ENUM.DUCKSHOOTER: SceneManager.LoadScene("DuckShooter"); break; case MINIGAMES_ENUM.EQUILIBRIO: SceneManager.LoadScene("Equilibrio"); break; case MINIGAMES_ENUM.MOVIMIENTO: SceneManager.LoadScene("Movimiento"); break; case MINIGAMES_ENUM.MATHEMATICS: SceneManager.LoadScene("MathematicalOperations"); break; case MINIGAMES_ENUM.VEGAN: SceneManager.LoadScene("VeganKnows"); break; case MINIGAMES_ENUM.SAFEBOX: SceneManager.LoadScene("SafeBox"); break; case MINIGAMES_ENUM.BOXING: SceneManager.LoadScene("Boxing"); break; case MINIGAMES_ENUM.FLAPPY: SceneManager.LoadScene("FlappyBird"); break; case MINIGAMES_ENUM.POLICE: SceneManager.LoadScene("PolicePursuit"); break; case MINIGAMES_ENUM.DUELO: SceneManager.LoadScene("KauboiDueru"); break; case MINIGAMES_ENUM.END: default: SceneManager.LoadScene("Pong"); break; } currentGame = currentGame + 1; if (currentGame == MINIGAMES_ENUM.END) { currentGame = MINIGAMES_ENUM.PONG; } }
public void LaunchMiniGame() { Debug.LogError("Launch MiniGame: " + currentGame.ToString()); switch (currentGame) { case MINIGAMES_ENUM.PONG: SceneManager.LoadScene("Pong"); break; case MINIGAMES_ENUM.GOATTHROW: SceneManager.LoadScene("GoatThrow"); break; case MINIGAMES_ENUM.BILLIARDS: SceneManager.LoadScene("Billiards"); break; case MINIGAMES_ENUM.BOTTLEFLIP: SceneManager.LoadScene("BottleFlip"); break; case MINIGAMES_ENUM.CARROT: SceneManager.LoadScene("Carrot"); break; case MINIGAMES_ENUM.DYKTW: SceneManager.LoadScene("DoYouKnowTheWay"); break; case MINIGAMES_ENUM.GITAHIRO: SceneManager.LoadScene("GitaHiro"); break; case MINIGAMES_ENUM.KNIFEFINGERS: SceneManager.LoadScene("KnifeFingers"); break; case MINIGAMES_ENUM.MSEGADA: SceneManager.LoadScene("MSegada"); break; case MINIGAMES_ENUM.PICKFISH: SceneManager.LoadScene("PickAFish"); break; case MINIGAMES_ENUM.DUCKSHOOTER: SceneManager.LoadScene("DuckShooter"); break; case MINIGAMES_ENUM.EQUILIBRIO: SceneManager.LoadScene("Equilibrio"); break; case MINIGAMES_ENUM.MATHEMATICS: SceneManager.LoadScene("MathematicalOperations"); break; case MINIGAMES_ENUM.VEGAN: SceneManager.LoadScene("VeganKnows"); break; case MINIGAMES_ENUM.SAFEBOX: SceneManager.LoadScene("SafeBox"); break; case MINIGAMES_ENUM.BOXING: SceneManager.LoadScene("Boxing"); break; case MINIGAMES_ENUM.FLAPPY: SceneManager.LoadScene("FlappyBird"); break; case MINIGAMES_ENUM.POLICE: SceneManager.LoadScene("PolicePursuit"); break; case MINIGAMES_ENUM.DUELO: SceneManager.LoadScene("KauboiDueru"); break; case MINIGAMES_ENUM.FROGGER: SceneManager.LoadScene("Frogger"); break; case MINIGAMES_ENUM.BURGUER: SceneManager.LoadScene("BurgerBuilder"); break; case MINIGAMES_ENUM.KNIFETHROW: SceneManager.LoadScene("KnifeThrow"); break; case MINIGAMES_ENUM.MACETA: SceneManager.LoadScene("Maceta"); break; case MINIGAMES_ENUM.SAFEPRESIDENT: SceneManager.LoadScene("SavePresident"); break; case MINIGAMES_ENUM.SHOOTINGALEX: SceneManager.LoadScene("ShootingAlex"); break; case MINIGAMES_ENUM.SHOOTCAN: SceneManager.LoadScene("ShotTheCan"); break; case MINIGAMES_ENUM.SIMON: SceneManager.LoadScene("SimonSays"); break; case MINIGAMES_ENUM.WOODCUTTER: SceneManager.LoadScene("WoodCutter"); break; case MINIGAMES_ENUM.ZUMBA: SceneManager.LoadScene("ZumbaClass"); break; case MINIGAMES_ENUM.BOMB: SceneManager.LoadScene("Bomb"); break; /* Not working games * case MINIGAMES_ENUM.FRISBEE: * SceneManager.LoadScene("Frisbee"); * break; * case MINIGAMES_ENUM.MOVIMIENTO: * SceneManager.LoadScene("Movimiento"); * break; */ case MINIGAMES_ENUM.BROCHETA: SceneManager.LoadScene("Brocheta"); break; case MINIGAMES_ENUM.BRUM: SceneManager.LoadScene("Brum"); break; case MINIGAMES_ENUM.END: default: SceneManager.LoadScene("Pong"); break; } currentGame = currentGame + 1; if (currentGame == MINIGAMES_ENUM.END) { currentGame = MINIGAMES_ENUM.PONG; } }
public void LaunchMiniGame() { if (games == null) { InitGames(); } if (games.Count == 0) { SceneManager.LoadScene("EndGame"); return; } int actual = UnityEngine.Random.Range((int)0, (int)games.Count); currentGame = (MINIGAMES_ENUM)games[actual]; Debug.Log("Launch MiniGame: " + currentGame.ToString()); games.RemoveAt(actual); switch (currentGame) { case MINIGAMES_ENUM.PONG: SceneManager.LoadScene("Pong"); break; case MINIGAMES_ENUM.GOATTHROW: SceneManager.LoadScene("GoatThrow"); break; case MINIGAMES_ENUM.BILLIARDS: SceneManager.LoadScene("Billiards"); break; case MINIGAMES_ENUM.BOTTLEFLIP: SceneManager.LoadScene("BottleFlip"); break; case MINIGAMES_ENUM.CARROT: SceneManager.LoadScene("Carrot"); break; case MINIGAMES_ENUM.DYKTW: SceneManager.LoadScene("DoYouKnowTheWay"); break; case MINIGAMES_ENUM.GITAHIRO: SceneManager.LoadScene("GitaHiro"); break; case MINIGAMES_ENUM.KNIFEFINGERS: SceneManager.LoadScene("KnifeFingers"); break; case MINIGAMES_ENUM.MSEGADA: SceneManager.LoadScene("MSegada"); break; case MINIGAMES_ENUM.PICKFISH: SceneManager.LoadScene("PickAFish"); break; case MINIGAMES_ENUM.DUCKSHOOTER: SceneManager.LoadScene("DuckShooter"); break; case MINIGAMES_ENUM.EQUILIBRIO: SceneManager.LoadScene("Equilibrio"); break; case MINIGAMES_ENUM.MATHEMATICS: SceneManager.LoadScene("MathematicalOperations"); break; case MINIGAMES_ENUM.VEGAN: SceneManager.LoadScene("VeganKnows"); break; case MINIGAMES_ENUM.SAFEBOX: SceneManager.LoadScene("SafeBox"); break; case MINIGAMES_ENUM.BOXING: SceneManager.LoadScene("Boxing"); break; case MINIGAMES_ENUM.FLAPPY: SceneManager.LoadScene("FlappyBird"); break; case MINIGAMES_ENUM.POLICE: SceneManager.LoadScene("PolicePursuit"); break; case MINIGAMES_ENUM.DUELO: SceneManager.LoadScene("KauboiDueru"); break; case MINIGAMES_ENUM.FROGGER: SceneManager.LoadScene("Frogger"); break; case MINIGAMES_ENUM.BURGUER: SceneManager.LoadScene("BurgerBuilder"); break; case MINIGAMES_ENUM.KNIFETHROW: SceneManager.LoadScene("KnifeThrow"); break; case MINIGAMES_ENUM.MACETA: SceneManager.LoadScene("Maceta"); break; case MINIGAMES_ENUM.SAFEPRESIDENT: SceneManager.LoadScene("SavePresident"); break; case MINIGAMES_ENUM.SHOOTINGALEX: SceneManager.LoadScene("ShootingAlex"); break; case MINIGAMES_ENUM.SHOOTCAN: SceneManager.LoadScene("ShotTheCan"); break; case MINIGAMES_ENUM.SIMON: SceneManager.LoadScene("SimonSays"); break; case MINIGAMES_ENUM.WOODCUTTER: SceneManager.LoadScene("WoodCutter"); break; case MINIGAMES_ENUM.ZUMBA: SceneManager.LoadScene("ZumbaClass"); break; case MINIGAMES_ENUM.BOMB: SceneManager.LoadScene("Bomb"); break; /* Not working games * case MINIGAMES_ENUM.FRISBEE: * SceneManager.LoadScene("Frisbee"); * break; * case MINIGAMES_ENUM.MOVIMIENTO: * SceneManager.LoadScene("Movimiento"); * break; */ case MINIGAMES_ENUM.BROCHETA: SceneManager.LoadScene("Brocheta"); break; case MINIGAMES_ENUM.BRUM: SceneManager.LoadScene("Brum"); break; case MINIGAMES_ENUM.BMX: SceneManager.LoadScene("BmxTheGame"); break; case MINIGAMES_ENUM.DESTROY: SceneManager.LoadScene("DestroyTheWorld"); break; case MINIGAMES_ENUM.BALLRUN: SceneManager.LoadScene("BallRun"); break; case MINIGAMES_ENUM.TREASURE: SceneManager.LoadScene("FindTreasure"); break; case MINIGAMES_ENUM.SHOOTTHEBALL: SceneManager.LoadScene("ShootTheBall"); break; case MINIGAMES_ENUM.RACINGSHIP: SceneManager.LoadScene("RacingShips"); break; case MINIGAMES_ENUM.CANNON: SceneManager.LoadScene("Cannon"); break; case MINIGAMES_ENUM.ZOMBIENITE: SceneManager.LoadScene("Zombienite"); break; case MINIGAMES_ENUM.BOWLING: SceneManager.LoadScene("Bowling"); break; /* * case MINIGAMES_ENUM.DISARM: * SceneManager.LoadScene("DisarmTheNuke"); * break; */ case MINIGAMES_ENUM.WHACA: SceneManager.LoadScene("Whacamole"); break; case MINIGAMES_ENUM.ARCO: SceneManager.LoadScene("Arco"); break; case MINIGAMES_ENUM.MATRIX: SceneManager.LoadScene("Matrix"); break; case MINIGAMES_ENUM.MOSQUITO: SceneManager.LoadScene("Mosquito"); break; case MINIGAMES_ENUM.PASTILLA: SceneManager.LoadScene("PastillaScene"); break; case MINIGAMES_ENUM.ROLLINGBALL: SceneManager.LoadScene("RollingBallScene"); break; case MINIGAMES_ENUM.WESTWILL: SceneManager.LoadScene("WestWilldRunner"); break; case MINIGAMES_ENUM.END: default: SceneManager.LoadScene("Pong"); break; } currentGame = currentGame + 1; if (currentGame == MINIGAMES_ENUM.END) { currentGame = MINIGAMES_ENUM.PONG; } }
public void LaunchMiniGame() { if (games == null) { foreach (MINIGAMES_ENUM m in gamesCopy) { games.Add(m); } } if (games.Count == 0) { SceneManager.LoadScene("EndGame"); return; } Random r = new Random(); int rand = r.Next(0, games.Count); currentGame = (MINIGAMES_ENUM)games[rand]; Debug.Log("Launch MiniGame: " + currentGame.ToString()); games.RemoveAt(rand); switch (currentGame) { case MINIGAMES_ENUM.PONG: SceneManager.LoadScene("Pong"); break; case MINIGAMES_ENUM.GOATTHROW: SceneManager.LoadScene("GoatThrow"); break; case MINIGAMES_ENUM.BILLIARDS: SceneManager.LoadScene("Billiards"); break; case MINIGAMES_ENUM.BOTTLEFLIP: SceneManager.LoadScene("BottleFlip"); break; case MINIGAMES_ENUM.TUBERACER: SceneManager.LoadScene("TubeRacer"); break; case MINIGAMES_ENUM.CARROT: SceneManager.LoadScene("Carrot"); break; case MINIGAMES_ENUM.DYKTW: SceneManager.LoadScene("DoYouKnowTheWay"); break; case MINIGAMES_ENUM.GITAHIRO: SceneManager.LoadScene("GitaHiro"); break; case MINIGAMES_ENUM.KNIFEFINGERS: SceneManager.LoadScene("KnifeFingers"); break; case MINIGAMES_ENUM.MSEGADA: SceneManager.LoadScene("MSegada"); break; case MINIGAMES_ENUM.PICKFISH: SceneManager.LoadScene("PickAFish"); break; case MINIGAMES_ENUM.DUCKSHOOTER: SceneManager.LoadScene("DuckShooter"); break; case MINIGAMES_ENUM.EQUILIBRIO: SceneManager.LoadScene("Equilibrio"); break; case MINIGAMES_ENUM.MATHEMATICS: SceneManager.LoadScene("MathematicalOperations"); break; case MINIGAMES_ENUM.VEGAN: SceneManager.LoadScene("VeganKnows"); break; case MINIGAMES_ENUM.SAFEBOX: SceneManager.LoadScene("SafeBox"); break; case MINIGAMES_ENUM.BOXING: SceneManager.LoadScene("Boxing"); break; case MINIGAMES_ENUM.FLAPPY: SceneManager.LoadScene("FlappyBird"); break; case MINIGAMES_ENUM.TRILERO: SceneManager.LoadScene("Trilero"); break; case MINIGAMES_ENUM.POLICE: SceneManager.LoadScene("PolicePursuit"); break; case MINIGAMES_ENUM.DUELO: SceneManager.LoadScene("KauboiDueru"); break; case MINIGAMES_ENUM.FROGGER: SceneManager.LoadScene("Frogger"); break; case MINIGAMES_ENUM.BURGUER: SceneManager.LoadScene("BurgerBuilder"); break; case MINIGAMES_ENUM.KNIFETHROW: SceneManager.LoadScene("KnifeThrow"); break; case MINIGAMES_ENUM.MACETA: SceneManager.LoadScene("Maceta"); break; case MINIGAMES_ENUM.SAFEPRESIDENT: SceneManager.LoadScene("SavePresident"); break; //case MINIGAMES_ENUM.SHOOTINGALEX: // SceneManager.LoadScene("ShootingAlex"); // break; case MINIGAMES_ENUM.SHOOTCAN: SceneManager.LoadScene("ShotTheCan"); break; case MINIGAMES_ENUM.SIMON: SceneManager.LoadScene("SimonSays"); break; case MINIGAMES_ENUM.WOODCUTTER: SceneManager.LoadScene("WoodCutter"); break; case MINIGAMES_ENUM.ZUMBA: SceneManager.LoadScene("ZumbaClass"); break; case MINIGAMES_ENUM.BOMB: SceneManager.LoadScene("Bomb"); break; /* Not working games * case MINIGAMES_ENUM.FRISBEE: * SceneManager.LoadScene("Frisbee"); * break; * case MINIGAMES_ENUM.MOVIMIENTO: * SceneManager.LoadScene("Movimiento"); * break; */ case MINIGAMES_ENUM.BROCHETA: SceneManager.LoadScene("Brocheta"); break; case MINIGAMES_ENUM.BRUM: SceneManager.LoadScene("Brum"); break; case MINIGAMES_ENUM.BMX: SceneManager.LoadScene("BmxTheGame"); break; case MINIGAMES_ENUM.DESTROY: SceneManager.LoadScene("DestroyTheWorld"); break; case MINIGAMES_ENUM.BALLRUN: SceneManager.LoadScene("BallRun"); break; case MINIGAMES_ENUM.TREASURE: SceneManager.LoadScene("FindTreasure"); break; case MINIGAMES_ENUM.SHOOTTHEBALL: SceneManager.LoadScene("ShootTheBall"); break; case MINIGAMES_ENUM.RACINGSHIP: SceneManager.LoadScene("RacingShips"); break; case MINIGAMES_ENUM.CANNON: SceneManager.LoadScene("Cannon"); break; case MINIGAMES_ENUM.ZOMBIENITE: SceneManager.LoadScene("Zombienite"); break; case MINIGAMES_ENUM.BOWLING: SceneManager.LoadScene("Bowling"); break; /* * case MINIGAMES_ENUM.DISARM: * SceneManager.LoadScene("DisarmTheNuke"); * break; */ case MINIGAMES_ENUM.WHACA: SceneManager.LoadScene("Whacamole"); break; case MINIGAMES_ENUM.ARCO: SceneManager.LoadScene("Arco"); break; case MINIGAMES_ENUM.MATRIX: SceneManager.LoadScene("Matrix"); break; case MINIGAMES_ENUM.MOSQUITO: SceneManager.LoadScene("Mosquito"); break; case MINIGAMES_ENUM.PASTILLA: SceneManager.LoadScene("PastillaScene"); break; case MINIGAMES_ENUM.ROLLINGBALL: SceneManager.LoadScene("RollingBallScene"); break; case MINIGAMES_ENUM.WESTWILL: SceneManager.LoadScene("WestWilldRunner"); break; case MINIGAMES_ENUM.BLACKJACK: SceneManager.LoadScene("Blackjack"); break; case MINIGAMES_ENUM.DOODLEJUMP: SceneManager.LoadScene("DoodleJump"); break; case MINIGAMES_ENUM.BLINDSHOT: SceneManager.LoadScene("BlindShot"); break; case MINIGAMES_ENUM.PIXELTOWER: SceneManager.LoadScene("PixelTower"); break; case MINIGAMES_ENUM.BULLETHELL: SceneManager.LoadScene("BulletHell"); break; case MINIGAMES_ENUM.TRON: SceneManager.LoadScene("Tron"); break; case MINIGAMES_ENUM.TROLLMARIO: SceneManager.LoadScene("Trollmario"); break; case MINIGAMES_ENUM.IMPOSSIBLEGAME: SceneManager.LoadScene("ImpossibleGameScene"); break; case MINIGAMES_ENUM.DRUNKEY: SceneManager.LoadScene("Drunkey"); break; case MINIGAMES_ENUM.BULLETDODGE: SceneManager.LoadScene("BulletDodge"); break; case MINIGAMES_ENUM.APPLESHOOTER: SceneManager.LoadScene("AppleShooter"); break; case MINIGAMES_ENUM.SUPERHEXAGON: SceneManager.LoadScene("SuperHexagon"); break; case MINIGAMES_ENUM.DONKEYKONG: SceneManager.LoadScene("DonkeyKong"); break; case MINIGAMES_ENUM.BULLETGUIDE: SceneManager.LoadScene("BulletGuide"); break; case MINIGAMES_ENUM.BOLERA: SceneManager.LoadScene("Bolos"); break; case MINIGAMES_ENUM.PANG: SceneManager.LoadScene("Pang"); break; case MINIGAMES_ENUM.ALCHEMYWARS: SceneManager.LoadScene("AlchemyWar"); break; case MINIGAMES_ENUM.GOLF: SceneManager.LoadScene("Golf"); break; case MINIGAMES_ENUM.OCTOPUS: SceneManager.LoadScene("Octopus"); break; case MINIGAMES_ENUM.AMUCHALIPSIS: SceneManager.LoadScene("Amuchalipsis"); break; case MINIGAMES_ENUM.HYPERJUMP: SceneManager.LoadScene("HyperJump"); break; case MINIGAMES_ENUM.PICROSS3D: SceneManager.LoadScene("Picross3D"); break; case MINIGAMES_ENUM.SPACE_SHOOTER: SceneManager.LoadScene("3DSpaceShooter"); break; case MINIGAMES_ENUM.ARKANOID: SceneManager.LoadScene("Arkanoid"); break; case MINIGAMES_ENUM.END: break; default: SceneManager.LoadScene("Pong"); break; } }