Exemple #1
0
 void CustomDispose()
 {
     try
     {
         Gui.Scripting.Variables.Remove(EditorVar);
         if (Uarray.CanPasteBelow())
         {
             bool anyMBeditor = false;
             foreach (object obj in Gui.Scripting.Variables.Values)
             {
                 if (obj is MonoBehaviourEditor)
                 {
                     anyMBeditor = true;
                     break;
                 }
             }
             if (!anyMBeditor)
             {
                 Uarray.Copy(null, -1);
             }
         }
         Editor = null;
     }
     catch (Exception ex)
     {
         Utility.ReportException(ex);
     }
 }
Exemple #2
0
 public bool ArrayPasteBelow(int line)
 {
     if (Uarray.CanPasteBelow())
     {
         int currentLine = 0;
         for (int i = 4; i < Parser.Parser.type.Members.Count; i++)
         {
             if (LoadedByTypeDefinitionEditor.ArrayOperation(Parser.Parser.type.Members[i], ref currentLine, line, Uarray.PasteBelow))
             {
                 Changed = true;
                 return(true);
             }
         }
     }
     else
     {
         Report.ReportLog("Warning! Nothing had been copied for pasting.");
     }
     return(false);
 }