Ejemplo n.º 1
0
 public void SetUp()
 {
     rocket          = new GameObject().AddComponent <Rocket>();
     levelsManager   = new GameObject().AddComponent <LevelsManager>();
     gameManager     = new GameObject().AddComponent <GameManager>();
     movingObstacles = new GameObject().AddComponent <MovingObstacles>();
 }
Ejemplo n.º 2
0
    public void IncreaseDifficulty()
    {
        PlayerController player = playerReference.GetComponent <PlayerController>();

        player.IncreaseDifficulty(playerSpeedIncrease);


        for (int i = 0; i < coinReferences.Length; i++)
        {
            coinReferences[i].SetActive(true);
        }

        for (int i = 0; i < obstacleReferences.Length; i++)
        {
            MovingObstacles mo = obstacleReferences[i].GetComponent <MovingObstacles>();
            mo.IncreaseDifficulty(obstacleSpeedIncrease);
        }

        onceMoreText.SetActive(true);

        Debug.Log("ENDLESS MODE START START");
    }