private void ImproveAbility(PickupPower pickupPower) { switch (pickupPower.Ability) { case Ability.Jump: _playerControllerScript.IncreaseJumpAmount(pickupPower.Power, pickupPower.LifeTime); break; case Ability.Speed: _playerControllerScript.IncreaseSpeedAmount(pickupPower.Power, pickupPower.LifeTime); break; case Ability.MultiJump: _playerControllerScript.IncreaseMultiJumpAmount(pickupPower.Power, pickupPower.LifeTime); break; } }