Adding An Afterburner!

To add a little more speed to the game, I have added a little boost to the player by adding an after burner. This will be done by re using the thruster animation and making it bigger when the Left shift key is pressed.

Afterburner on / off

This is controlled in the hierarchy with another asset as a child to the player like so:

Hierarchy

Add 3 variables to the player script

Then within the update method of our player add:

When pressing shift the after burner is set to active and the thruster component is turned off, while it is on the speed it doubled.