change controls to throw with Right Trigger

change the ControllerMapper so that throwing a pillow is now done with the
Right Trigger insead of B button.
This commit is contained in:
jparent 2015-08-23 09:46:46 -04:00
parent 9b0cad2dd0
commit 15d1776957
2 changed files with 7 additions and 7 deletions

View File

@ -17,9 +17,6 @@ MonoBehaviour:
- name: Jump
XboxButtons: 00000000
KeyboardKeys:
- name: Throw
XboxButtons: 01000000
KeyboardKeys:
- name: Sleep
XboxButtons: 02000000
KeyboardKeys:
@ -48,6 +45,9 @@ MonoBehaviour:
- name: LookBackward
Axis: 07000000
KeyboardKeys:
- name: Throw
Axis: 09000000
KeyboardKeys:
ButtonStates: []
- name: Sleeping
ButtonActions:

View File

@ -89,6 +89,10 @@ public class ChildController : MonoBehaviour
transform.eulerAngles.z);
}
}
if (input.Ranges.ContainsKey("Throw")) {
_child.Throw();
}
}
private void HandlePlayerButtons(MappedInput input)
@ -111,10 +115,6 @@ public class ChildController : MonoBehaviour
_child.WakeUp();
InputManager.Instance.PushActiveContext("Awake", (int)PlayerNumber);
}
if (input.Actions.Contains("Throw")) {
_child.Throw();
}
}
}