예제 #1
0
 void increaseSpeed(IncreaseDifficultyEvent e)
 {
     difficultyIncreasesCount++;
     for (int i = 0; i < difficultyIncreasesCount; i++)
     {
         timeBetweenMoves.y *= difficultyRamp;
     }
 }
예제 #2
0
 void increaseSpeed(IncreaseDifficultyEvent e)
 {
     difficultyIncreases++;
     if ((isDropSpawner && difficultyIncreases <= 5) || !isDropSpawner)
     {
         if ((timeBetweenSpawnsBase > .3f && !isDropSpawner) || isDropSpawner)
         {
             timeBetweenSpawnsBase     -= .1f;
             timeBetweenSpawnsVariance -= .1f;
         }
     }
 }