periodic update for my own sanity
This commit is contained in:
parent
0b1e41fb61
commit
36e5300300
@ -40,6 +40,15 @@
|
||||
"processors": "",
|
||||
"interactions": "",
|
||||
"initialStateCheck": false
|
||||
},
|
||||
{
|
||||
"name": "ClarinetDive",
|
||||
"type": "Button",
|
||||
"id": "559aad1e-5ce8-4aa1-9442-12f6f51fceca",
|
||||
"expectedControlType": "Button",
|
||||
"processors": "",
|
||||
"interactions": "",
|
||||
"initialStateCheck": false
|
||||
}
|
||||
],
|
||||
"bindings": [
|
||||
@ -196,6 +205,17 @@
|
||||
"action": "Jump",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"id": "679f7163-1cdf-4ae4-b4f4-133d1b2514a6",
|
||||
"path": "<Keyboard>/#(J)",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "",
|
||||
"action": "ClarinetDive",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -90,9 +90,10 @@ public class PlayerBehavior : MonoBehaviour
|
||||
unlockedClarinet = stateController.unlockedClarinet;
|
||||
if(playerIsAlive)
|
||||
{
|
||||
// if key pressed J
|
||||
// launch down at 45 degree angle
|
||||
// use: player facing, velocity, start/end points?
|
||||
if (playerInput.actions["ClarinetDive"].WasPressedThisFrame())
|
||||
{
|
||||
UseClarinet();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -141,7 +142,13 @@ public class PlayerBehavior : MonoBehaviour
|
||||
|
||||
void UseClarinet()
|
||||
{
|
||||
|
||||
// if key pressed J
|
||||
// launch down at 45 degree angle
|
||||
// use: player facing, velocity, start dash function, end dash function
|
||||
if (!playerController.IsGrounded())
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
|
||||
void ThrowTambourine() {
|
||||
|
Loading…
Reference in New Issue
Block a user