Пример #1
0
 private void Start()
 {
     minigame.StartMinigame();
 }
Пример #2
0
 /// <summary>
 /// Starts the minigame
 /// </summary>
 /// <param name="GameNumber">Game number of the game to be started</param>
 void StartGame(int GameNumber)
 {
     //MoveCamera (gameNumber);
     currentMinigame = (MiniGame)Instantiate (GetGame(GameNumber), new Vector3 (0, 0, -10), Quaternion.identity);
     //currentMinigame = GetGame(GameNumber);
     //currentMinigame.gameObject.SetActive(true);
     StartCoroutine(currentMinigame.StartMinigame(GetDifficulty(), /*!hasPlayed(currentMinigame.title)*/ true));
 }