コード例 #1
0
 public static SkillGameObject FsmGameObjectPopup(GUIContent label, Skill fsm, SkillGameObject fsmGameObject)
 {
     EditorGUILayout.BeginHorizontal(new GUILayoutOption[0]);
     fsmGameObject = VariableEditor.DoFsmGameObjectPopup(label, fsm, fsmGameObject);
     VariableEditor.EndVariableEditor(fsmGameObject);
     return(fsmGameObject);
 }
コード例 #2
0
 public static SkillGameObject FsmGameObjectField(GUIContent label, Skill fsm, SkillGameObject fsmGameObject)
 {
     if (label == null)
     {
         label = GUIContent.none;
     }
     EditorGUILayout.BeginHorizontal(new GUILayoutOption[0]);
     if (fsmGameObject.get_UseVariable())
     {
         fsmGameObject = VariableEditor.DoFsmGameObjectPopup(label, fsm, fsmGameObject);
     }
     else
     {
         fsmGameObject.set_Value((GameObject)EditorGUILayout.ObjectField(label, fsmGameObject.get_Value(), typeof(GameObject), !SkillEditor.SelectedFsmIsPersistent(), new GUILayoutOption[0]));
     }
     fsmGameObject = (SkillGameObject)VariableEditor.VariableToggle(fsmGameObject, label.get_text());
     VariableEditor.EndVariableEditor(fsmGameObject);
     return(fsmGameObject);
 }