mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-03 10:29:22 +00:00
Minor fixes
This commit is contained in:
parent
aebf6c2c4e
commit
914bca26e4
14 changed files with 226 additions and 54 deletions
|
@ -79,8 +79,33 @@ namespace ml_pam
|
|||
|
||||
void OnDestroy()
|
||||
{
|
||||
if(m_armIKLeft != null)
|
||||
Destroy(m_armIKLeft);
|
||||
m_armIKLeft = null;
|
||||
|
||||
if(m_armIKRight != null)
|
||||
Destroy(m_armIKRight);
|
||||
m_armIKRight = null;
|
||||
|
||||
if(m_rootLeft != null)
|
||||
Destroy(m_rootLeft);
|
||||
m_rootLeft = null;
|
||||
m_leftTarget = null;
|
||||
|
||||
if(m_rootRight != null)
|
||||
Destroy(m_rootRight);
|
||||
m_rootRight = null;
|
||||
m_rightTarget = null;
|
||||
|
||||
m_pickup = null;
|
||||
m_vrIK = null;
|
||||
m_origLeftHand = null;
|
||||
m_origRightHand = null;
|
||||
|
||||
Settings.EnabledChange -= this.SetEnabled;
|
||||
Settings.GrabOffsetChange -= this.SetGrabOffset;
|
||||
Settings.LeadingHandChange -= this.OnLeadingHandChange;
|
||||
Settings.HandsExtensionChange -= this.OnHandsExtensionChange;
|
||||
}
|
||||
|
||||
void Update()
|
||||
|
|
|
@ -61,6 +61,10 @@ namespace ml_pam
|
|||
{
|
||||
if(ms_instance == this)
|
||||
ms_instance = null;
|
||||
|
||||
if(m_localMover != null)
|
||||
UnityEngine.Object.Destroy(m_localMover);
|
||||
m_localMover = null;
|
||||
}
|
||||
|
||||
static void OnAvatarClear_Postfix() => ms_instance?.OnAvatarClear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue