Extra Speed

I’m going to use the LeftShift key to increase our speed.

On the Player, add Input.GetKeyDown and Input.GetKeyUp to detect when the LeftShift key is pressed or released. I’ll need a couple of new variables so I’ve added _speedHigh and _speedLow:

Next I added my GetKeyDown functions to the update method:

--

--

--

Unity and Flutter developer interested in creating mixed-reality applications.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Redis as a JSON store

{UPDATE} Unterwasser-See-Monster-Angrif Hack Free Resources Generator

Run-Time Polymorphism in C#

VeriDoc Global Smart Login.

What Is Rangeability And Turndown Ratio And Why Is It Important?

My Code Made it to the Arctic Vault

Exorde roadmap

How to Set up VSCode for Development of Spring Boot Services

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Richard Morgan

Richard Morgan

Unity and Flutter developer interested in creating mixed-reality applications.

More from Medium

CS373 Spring 2022: Ali Al-Adhami, Week 3

How will the payment change in the future?

Simple Saturday’s: Let’s talk about Mindset

Douglas Murray goes woke