Exemple #1
0
 protected void InspectorGUIAddButton()
 {
     GUI.color = Color.green;
     GUILayout.BeginHorizontal();
     if (GUILayout.Button(GetMethodName(Target.AddBefore)))
     {
         Selection.activeGameObject = Target.AddBefore();
     }
     else if (GUILayout.Button(GetMethodName(Target.AddAfter)))
     {
         Selection.activeGameObject = Target.AddAfter();
     }
     GUILayout.EndHorizontal();
     GUI.color = Color.white;
 }