public void UsePowerup(View.Game.Player game) { setUsed(true); if(type == Type.Speedboost) { game.speedBoostActive = true; game.speedBoostLength += speedBonusDuration; game.speedBoostTimer.Start(); } if(type == Type.Scoreboost) { game.addScore(ScoreBonus); } if(type == Type.Emp) { game.emp = true; game.Emp(EMPDuration); } }