Question by
SloppeD · Nov 06, 2015 at 07:44 PM ·
getkeydowngetkeygetbuttondowngetbutton
How to set this to GetButton?
private void UpdateControls() {
if (Input.GetKey (leftKey)) { //I want remove all GetKey's, and paste there GetButtom
FaceDirection (-1);
} else if (Input.GetKey (rightKey)) {
FaceDirection (1);
} else {
FaceDirection (0);
}
if (Input.GetKeyDown (jumpKey)) {
Jump ();
}
}
Comment