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 - name: Jump
XboxButtons: 00000000 XboxButtons: 00000000
KeyboardKeys: KeyboardKeys:
- name: Throw
XboxButtons: 01000000
KeyboardKeys:
- name: Sleep - name: Sleep
XboxButtons: 02000000 XboxButtons: 02000000
KeyboardKeys: KeyboardKeys:
@ -48,6 +45,9 @@ MonoBehaviour:
- name: LookBackward - name: LookBackward
Axis: 07000000 Axis: 07000000
KeyboardKeys: KeyboardKeys:
- name: Throw
Axis: 09000000
KeyboardKeys:
ButtonStates: [] ButtonStates: []
- name: Sleeping - name: Sleeping
ButtonActions: ButtonActions:

View File

@ -88,6 +88,10 @@ public class ChildController : MonoBehaviour
Mathf.Atan2(xLookingValue, zLookingValue) * Mathf.Rad2Deg -90, // -90 to correct forward facing angle... Mathf.Atan2(xLookingValue, zLookingValue) * Mathf.Rad2Deg -90, // -90 to correct forward facing angle...
transform.eulerAngles.z); transform.eulerAngles.z);
} }
}
if (input.Ranges.ContainsKey("Throw")) {
_child.Throw();
} }
} }
@ -111,10 +115,6 @@ public class ChildController : MonoBehaviour
_child.WakeUp(); _child.WakeUp();
InputManager.Instance.PushActiveContext("Awake", (int)PlayerNumber); InputManager.Instance.PushActiveContext("Awake", (int)PlayerNumber);
} }
if (input.Actions.Contains("Throw")) {
_child.Throw();
}
} }
} }