private static void ClearProcessor()
    {
        if (mProcessor == null)
            return;

        EditorApplication.update -= mProcessor.Update;
        mProcessor.Dispose();

        mProcessor = null;
    }
 private static void SetProcessor()
 {
     if (mProcessor == null)
     {
         mProcessor = new BuildProcessor();
         EditorApplication.update += mProcessor.Update;
     }
 }