Пример #1
0
 private void PickupType()
 {
     if (type == 0)
     {
         gameStatus.AddHealth(20);
     }
     else if (type == 1)
     {
         gameStatus.AddHealth(50);
     }
     else if (type == 2)
     {
         gameStatus.AddHealth(100);
     }
     else if (type == 3)
     {
         gunController.AddAmmo("pistol", 12);
     }
     else if (type == 4)
     {
         gunController.AddAmmo("pistol", 36);
     }
     else if (type == 5)
     {
         gunController.AddAmmo("pistol", 108);
     }
     else if (type == 6)
     {
         gunController.AddAmmo("smg", 30);
     }
     else if (type == 7)
     {
         gunController.AddAmmo("smg", 90);
     }
     else if (type == 8)
     {
         gunController.AddAmmo("smg", 270);
     }
     else if (type == 9)
     {
         gunController.AddAmmo("smg", 810);
     }
     else if (type == 10)
     {
         GameStatus.sprintPicked         = true;
         GameStatus.sprintCalculatorMax += 30;
     }
     else if (type == 11)
     {
         GameStatus.sprintPicked         = true;
         GameStatus.sprintCalculatorMax += 180;
     }
     else if (type == 12)
     {
         gameStatus.AddPoints(Mathf.RoundToInt(gameStatus.zombieHealthMax / 10 * 3));
     }
     else if (type == 13)
     {
         gameStatus.AddPoints(Mathf.RoundToInt(gameStatus.zombieHealthMax));
     }
 }