Beispiel #1
0
        private void OnDestroy()
        {
            Cleanup();

            m_typeToMaterial = null;
            m_types          = null;

            OnDestroyOverride();

            IOC.UnregisterFallback <ISpriteGizmoManager>(this);
        }
 private void OnDestroy()
 {
     IOC.UnregisterFallback <IRTEState>(this);
     if (m_createEditorButton != null)
     {
         m_createEditorButton.onClick.RemoveListener(OnOpen);
     }
     if (m_editor != null)
     {
         m_editor.IsOpenedChanged -= OnIsOpenedChanged;
     }
 }
        private void OnDestroy()
        {
            Cleanup();

            m_graphics.Destroy(m_meshesCache);

            m_typeToMeshAndMaterial = null;
            m_types = null;

            OnDestroyOverride();

            IOC.UnregisterFallback <ISpriteGizmoManager>(this);
        }
        private void OnDestroy()
        {
            Cleanup();

            foreach (Type type in m_registered.Keys.ToArray())
            {
                Unregister(type);
            }

            m_graphics.DestroySharedMeshesCache(m_meshesCache);

            m_typeToMeshAndMaterial = null;
            m_types = null;

            OnDestroyOverride();

            IOC.UnregisterFallback <ISpriteGizmoManager>(this);
        }
Beispiel #5
0
        protected override void OnDestroyOverride()
        {
            base.OnDestroyOverride();

            InputTracking.trackingAcquired -= OnTrackingAquired;
            InputTracking.trackingLost     -= OnTrackingLost;

            IOC.UnregisterFallback <IVRTracker>(this);

            if (m_leftHand != m_nullDevice)
            {
                OnTrackingLost(XRNode.LeftHand);
            }

            if (m_rightHand != m_nullDevice)
            {
                OnTrackingLost(XRNode.RightHand);
            }
        }
 private void OnDestroy()
 {
     IOC.UnregisterFallback <IRTEGraphics>(this);
 }