Пример #1
0
 public override void OnInspectorGUI()
 {
     DrawDefaultInspector();
     TextUnit TU = (TextUnit)target;
     if (GUILayout.Button("Assign"))
     {
         Undo.RecordObject(TU, "Assign");
         TU.EditorAssign();
         PrefabUtility.RecordPrefabInstancePropertyModifications(TU);
     }
     if (GUILayout.Button("NextUnit"))
     {
         Undo.RecordObject(TU, "NextUnit");
         TU.EditorNextUnit();
         PrefabUtility.RecordPrefabInstancePropertyModifications(TU);
     }
 }