示例#1
0
 public override void OnInspectorGUI()
 {
     base.OnInspectorGUI();
     text = (TextUI)target;
     if (GUILayout.Button("FormatText"))
     {
         text.Format();
     }
     if (GUILayout.Button("TranslateThis"))
     {
         text.TranslateThis();
     }
     if (GUILayout.Button("TranslateAllInScene"))
     {
         text.TranslateAllInScene();
     }
     if (GUILayout.Button("renameAllTextObject"))
     {
         text.renameAllTextObject();
     }
     if (GUILayout.Button("Setup_DialogID"))
     {
         text.SetupDialogIDFromGameObject();
     }
 }