In this article, we will create a function to boost up the speed when we hold down left shift during the game.
Let’s check out the concept first:
With this concept, we need to create a variable to storage the boost up speed.
Make this SerializeField we could adjust it later on.
Then add a statement check inside Update() to boost up our player.
Then we can play our game and check the result.