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
|
- 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:
|
||||||
|
|||||||
@ -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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user