Commit 80d20cb9 authored by Vishal Tomar's avatar Vishal Tomar
Browse files

Cat runs using left shift

parent 85d2c793
......@@ -36,6 +36,12 @@ public class HeroMovement : MonoBehaviour {
// Update is called once per frame
void Update ()
{
if (Input.GetButtonDown ("Run")) {
maxSpeed *= 2;
}
if (Input.GetButtonUp ("Run")) {
maxSpeed /= 2;
}
}
public void HandleJumpButton()
......
m_EditorVersion: 5.4.1f1
m_EditorVersion: 5.4.0f3
m_StandardAssetsVersion: 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment