mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
ASTExtension: Remove OnStayEnd
This commit is contained in:
parent
1fc70a07db
commit
9d94332c7a
1 changed files with 0 additions and 17 deletions
|
@ -368,7 +368,6 @@ public class ASTExtensionMod : MelonMod
|
|||
});
|
||||
gesture.onStart.AddListener(OnScaleStart);
|
||||
gesture.onStay.AddListener(OnScaleStay);
|
||||
gesture.onEnd.AddListener(OnScaleEnd);
|
||||
CVRGestureRecognizer.Instance.gestures.Add(gesture);
|
||||
|
||||
gesture = new CVRGesture
|
||||
|
@ -387,7 +386,6 @@ public class ASTExtensionMod : MelonMod
|
|||
});
|
||||
gesture.onStart.AddListener(OnScaleStart);
|
||||
gesture.onStay.AddListener(OnScaleStay);
|
||||
gesture.onEnd.AddListener(OnScaleEnd);
|
||||
CVRGestureRecognizer.Instance.gestures.Add(gesture);
|
||||
}
|
||||
|
||||
|
@ -402,9 +400,6 @@ public class ASTExtensionMod : MelonMod
|
|||
// Store initial modifier so we can get difference later
|
||||
_initialModifier = Mathf.Max(modifier, 0.01f); // no zero
|
||||
_initialTargetHeight = PlayerSetup.Instance.GetCurrentAvatarHeight();
|
||||
|
||||
if (EntryRequireTriggersDuringGesture.Value)
|
||||
CVR_InteractableManager.enableInteractions = false;
|
||||
}
|
||||
|
||||
private void OnScaleStay(float modifier, Transform transform1, Transform transform2)
|
||||
|
@ -440,18 +435,6 @@ public class ASTExtensionMod : MelonMod
|
|||
SetAvatarHeight(targetHeight);
|
||||
}
|
||||
|
||||
private void OnScaleEnd(float modifier, Transform transform1, Transform transform2)
|
||||
{
|
||||
if (!_currentAvatarSupported)
|
||||
return;
|
||||
|
||||
if (!EntryUseScaleGesture.Value)
|
||||
return;
|
||||
|
||||
if (EntryRequireTriggersDuringGesture.Value)
|
||||
CVR_InteractableManager.enableInteractions = true;
|
||||
}
|
||||
|
||||
private static bool AreBothTriggersDown()
|
||||
{
|
||||
// Maybe it should be one trigger? Imagine XSOverlay scaling but for player.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue