Beispiel #1
0
    private void StartNewLevel()
    {
        if (!playing)
        {
            return;
        }

        BallManager.ExplodeBalls();
        BallManager.ExplodeBalls();
        BallManager.ExplodeBalls();

        Level += 1;
        GameModeText.SetText("Classical : Level " + Level);
        CancelAllInvokes();
        StartRecursiveRandomBallGenerator(GenerateTimingFromLevel());

        if (Level != 1)
        {
            SpawnRandomSpecialItem();
        }

        if (playing)
        {
            Invoke("StartNewLevel", 60);
        }
    }
 private void OnTriggerEnter(Collider other)
 {
     if (!entered)
     {
         entered = true;
         Invoke("ResetEntered", 5);
         GameModeText.SetText("Training Mode");
         GameManager.StartGame(GameObject.Find("GameManager").AddComponent <Training>());
     }
 }
 private void OnTriggerEnter(Collider other)
 {
     if (!entered)
     {
         entered = true;
         Invoke("ResetEntered", 5);
         GameModeText.SetText("Classical : Level 1");
         GameManager.StartGame(GameObject.Find("GameManager").AddComponent <Classical>());
     }
 }
Beispiel #4
0
 public static void GameOver()
 {
     if (!IsGameOver)
     {
         IsGameOver = true;
         Debug.Log("Game over in Game Manager");
         RestartGame.DetachFloor();
         GameModeText.GameOver();
         staticGameOver.Play();
         //BallManager.ExplodeBalls();
         //BallManager.ExplodeBalls();
         //BallManager.ExplodeBalls();
     }
 }