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
|
@ -1,5 +1,4 @@
|
|||
using ABI_RC.Core.Player;
|
||||
using ABI_RC.Core.Savior;
|
||||
using ABI_RC.Systems.InputManagement;
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
|
@ -60,6 +59,23 @@ namespace ml_lme
|
|||
m_leapController.Dispose();
|
||||
m_leapController = null;
|
||||
|
||||
if(m_leapTracking != null)
|
||||
Object.Destroy(m_leapTracking);
|
||||
m_leapTracking = null;
|
||||
|
||||
if(m_leapTracked != null)
|
||||
Object.Destroy(m_leapTracked);
|
||||
m_leapTracked = null;
|
||||
|
||||
if(m_leapInput != null)
|
||||
{
|
||||
if(CVRInputManager.Instance != null)
|
||||
CVRInputManager.Instance.DestroyInputModule(m_leapInput);
|
||||
else
|
||||
m_leapInput.ModuleDestroyed();
|
||||
}
|
||||
m_leapInput = null;
|
||||
|
||||
Settings.EnabledChange -= this.OnEnableChange;
|
||||
Settings.TrackingModeChange -= this.OnTrackingModeChange;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue