protected void OnDestroy() { SceneView.onSceneGUIDelegate -= OnSceneGUI; Undo.undoRedoPerformed -= OnUndoRedoPerformed; VertexProcesser.Dispose(); TrangleProcesser.Dispose(); }
/// <summary> /// OnGUI之前的准备 /// </summary> protected void BeforeOnGUI() { if (pTCameraVertex == null) { pTCameraVertex = VertexProcesser.Get(); } if (pTCameraTrangle == null) { pTCameraTrangle = TrangleProcesser.Get(); } }