mirror of
https://github.com/ConjureETS/PillowFight.git
synced 2026-03-24 00:50:59 +00:00
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:
parent
9b0cad2dd0
commit
15d1776957
@ -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:
|
||||
|
||||
@ -88,6 +88,10 @@ public class ChildController : MonoBehaviour
|
||||
Mathf.Atan2(xLookingValue, zLookingValue) * Mathf.Rad2Deg -90, // -90 to correct forward facing angle...
|
||||
transform.eulerAngles.z);
|
||||
}
|
||||
}
|
||||
|
||||
if (input.Ranges.ContainsKey("Throw")) {
|
||||
_child.Throw();
|
||||
}
|
||||
}
|
||||
|
||||
@ -111,10 +115,6 @@ public class ChildController : MonoBehaviour
|
||||
_child.WakeUp();
|
||||
InputManager.Instance.PushActiveContext("Awake", (int)PlayerNumber);
|
||||
}
|
||||
|
||||
if (input.Actions.Contains("Throw")) {
|
||||
_child.Throw();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user