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