Skip to content
Permalink
Browse files

Update GameController_1.cs

  • Loading branch information
aps16104 committed Feb 24, 2020
1 parent 78d02a5 commit 205aba333c2d6725a8ab1c94abf17341c6e1c34b
Showing with 17 additions and 17 deletions.
  1. +17 −17 SpaceShooter/Assets/Scripts/Enemy Game Controllers/GameController_1.cs
@@ -44,7 +44,7 @@ void Update()

hazardCount_1 = 2;
spawnWait_1 = .70f;
waveWait_1 = 5;
waveWait_1 = 10;
}

//level 2
@@ -53,61 +53,61 @@ void Update()

hazardCount_1 = 3;
spawnWait_1 = .60f;
waveWait_1 = 8;
waveWait_1 = 9;
}

//level 3
if (ScoreScript.scoreValue >= 300 && ScoreScript.scoreValue < 400)
{
hazardCount_1 = 4;
spawnWait_1 = .60f;
waveWait_1 = 8;
waveWait_1 = 9;

}

// level 4
if (ScoreScript.scoreValue >= 400 && ScoreScript.scoreValue < 500)
{
hazardCount_1 = 5;
hazardCount_1 = 4;
spawnWait_1 = .50f;
waveWait_1 = 8;
waveWait_1 = 9;

}

//From level 5 and onwards
if (ScoreScript.scoreValue >= 500 && ScoreScript.scoreValue < 1000000000)
{
hazardCount_1 = 6;
hazardCount_1 = 5;
spawnWait_1 = .50f;
waveWait_1 = 8;
}

if (ScoreScript.scoreValue >= 600 && ScoreScript.scoreValue < 700)
{
hazardCount_1 = 7;
spawnWait_1 = .40f;
hazardCount_1 = 5;
spawnWait_1 = .50f;
waveWait_1 = 7;
}

if (ScoreScript.scoreValue >= 700 && ScoreScript.scoreValue < 800)
{
hazardCount_1 = 7;
spawnWait_1 = .40f;
waveWait_1 = 6;
hazardCount_1 = 6;
spawnWait_1 = .50f;
waveWait_1 = 7;
}

if (ScoreScript.scoreValue >= 800 && ScoreScript.scoreValue < 900)
{
hazardCount_1 = 7;
spawnWait_1 = .30f;
waveWait_1 = 5;
hazardCount_1 = 6;
spawnWait_1 = .45f;
waveWait_1 = 6;
}

if (ScoreScript.scoreValue >= 900 )
{
hazardCount_1 = 10;
spawnWait_1 = .30f;
waveWait_1 = 4;
hazardCount_1 = 7;
spawnWait_1 = .40f;
waveWait_1 = 7;
}

}

0 comments on commit 205aba3

Please sign in to comment.
You can’t perform that action at this time.