ranks!
This commit is contained in:
1 parent
0450f32a9e
commit
ec99a4579d
9 files changed
+90
-17
No files matched your search
@@ -200,6 +200,20 @@ public class ShipControls : MonoBehaviour {
|
||||
input.ship.powerUnit4.started += OnPowerUnit4;
|
||||
}
|
||||
|
||||
void OnDestroy() {
|
||||
input.ship.strafe.started -= OnStrafe;
|
||||
input.ship.strafe.performed -= OnStrafe;
|
||||
input.ship.strafe.canceled -= OnStrafe;
|
||||
|
||||
// these we only care about the initial press
|
||||
input.ship.respawn.started -= OnRespawn;
|
||||
input.ship.quit.started -= OnQuit;
|
||||
input.ship.powerUnit1.started -= OnPowerUnit1;
|
||||
input.ship.powerUnit2.started -= OnPowerUnit2;
|
||||
input.ship.powerUnit3.started -= OnPowerUnit3;
|
||||
input.ship.powerUnit4.started -= OnPowerUnit4;
|
||||
}
|
||||
|
||||
void OnStrafe(InputAction.CallbackContext ctx) {
|
||||
Vector2 str = ctx.ReadValue<Vector2>();
|
||||
strafe = new Vector3(str.x, str.y, 0f) * powerUnit.Strafing;
|
||||
|
||||
Reference in new issue
Block a user