diff --git a/Assets/Scripts/Augment/AugmentImplementations/DDRBody.cs b/Assets/Scripts/Augment/AugmentImplementations/DDRBody.cs index 2753a87f7..18425f14d 100644 --- a/Assets/Scripts/Augment/AugmentImplementations/DDRBody.cs +++ b/Assets/Scripts/Augment/AugmentImplementations/DDRBody.cs @@ -40,6 +40,7 @@ public class DDRBody : GunBody private const float targetHeight = 3; private const float startHeight = targetHeight - screenHeight; + private const float lowestCheckHeight = 2.5f; [SerializeField] private Precision[] precisionsGoodToBad; @@ -126,6 +127,9 @@ private void Fire(InputAction.CallbackContext ctx) private void ArrowSelect(InputAction.CallbackContext ctx) { + if (arrowHeight < lowestCheckHeight) + return; + switch (arrowDirection) { case ArrowDirection.NORTH: @@ -193,7 +197,12 @@ private void ResetArrow() private void OnDestroy() { - if (gunController) - gunController.player.inputManager.onMovePerformed -= ArrowSelect; + if (!gunController) + return; + if (!gunController.player) + return; + + gunController.player.inputManager.onFirePerformed -= Fire; + gunController.player.inputManager.onMovePerformed -= ArrowSelect; } } diff --git a/Assets/Shaders/ddrShader.shadergraph b/Assets/Shaders/ddrShader.shadergraph index ce4efb130..85914a090 100644 --- a/Assets/Shaders/ddrShader.shadergraph +++ b/Assets/Shaders/ddrShader.shadergraph @@ -4171,9 +4171,9 @@ "m_ShaderOutputName": "Emission", "m_StageCapability": 2, "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0 + "x": 0.037735819816589358, + "y": 0.037522222846746448, + "z": 0.037522222846746448 }, "m_DefaultValue": { "x": 0.0,