/// <summary> /// Destroy the Manager instance, use for close the device. /// 销毁此管理类单件 用于关闭设备 /// </summary> public void DoDestroy() { m_OrbbecCallback = null; if (IsInited) { m_Wrapper.ShutDown(); IsInited = false; } GameObject.Destroy(gameObject); ms_Instance = null; }