SHOW:
|
|
- or go back to the newest paste.
1 | - | //****** Donations are greatly appreciated. ****** |
1 | + | |
2 | - | //****** You can donate directly to Jesse through paypal at https://www.paypal.me/JEtzler ****** |
2 | + | |
3 | ||
4 | } | |
5 | ||
6 | function Update () { | |
7 | ||
8 | if(Input.GetKey("a") && Input.GetMouseButton(1) || Input.GetKey("w") && Input.GetMouseButton(1) || Input.GetKey("d") && Input.GetMouseButton(1) | |
9 | || Input.GetKey("s") && Input.GetMouseButton(1) || Input.GetKey("w") && Input.GetMouseButton(0) || Input.GetKey("s") && Input.GetMouseButton(0) | |
10 | || Input.GetKey("w") || Input.GetKey("s")) { | |
11 | ||
12 | if(movement.grounded == true) { | |
13 | audio.volume = 1; | |
14 | } | |
15 | ||
16 | else { | |
17 | ||
18 | audio.volume = 0; | |
19 | } | |
20 | } | |
21 | else { | |
22 | audio.volume = 0; | |
23 | } |