mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-05 03:19:23 +00:00
Minor change of grab state detection
This commit is contained in:
parent
dee25a1c48
commit
e5d4ea9d29
4 changed files with 19 additions and 4 deletions
|
@ -30,7 +30,7 @@ namespace ml_prm
|
|||
|
||||
void Update()
|
||||
{
|
||||
bool l_state = Mathf.Approximately(m_puppetMaster.PlayerAvatarMovementDataInput.AnimatorGestureLeft, 1f);
|
||||
bool l_state = m_puppetMaster.IsLeftGrabPointerActive();
|
||||
if(m_stateLeft != l_state)
|
||||
{
|
||||
m_stateLeft = l_state;
|
||||
|
@ -38,7 +38,7 @@ namespace ml_prm
|
|||
OnGestureState.Invoke(m_puppetMaster, true, m_stateLeft);
|
||||
}
|
||||
|
||||
l_state = Mathf.Approximately(m_puppetMaster.PlayerAvatarMovementDataInput.AnimatorGestureRight, 1f);
|
||||
l_state = m_puppetMaster.IsRightGrabPointerActive();
|
||||
if(m_stateRight != l_state)
|
||||
{
|
||||
m_stateRight = l_state;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue