internal TransitionDisplayHelper(SerializedTransition serializedTransition, TransitionTableEditor editor)
 {
     SerializedTransition = serializedTransition;
     _reorderableList     = new ReorderableList(SerializedTransition.Transition.serializedObject, SerializedTransition.Conditions, true, false, true, true);
     SetupConditionsList(_reorderableList);
     _editor = editor;
 }
Ejemplo n.º 2
0
 internal DisplayTransition(SerializedTransition serializedTransition, TransitionTableEditor editorInternal)
 {
     SerializedTransition = serializedTransition;
     reorderableList      = new ReorderableList(SerializedTransition.Transition.serializedObject,
                                                SerializedTransition.Conditions, true, false, true, true);
     SetupConditionsList(reorderableList);
     editor = editorInternal;
 }
Ejemplo n.º 3
0
 internal AddTransitionHelper(TransitionTableEditor editor)
 {
     _editor              = editor;
     _transition          = new SerializedObject(ScriptableObject.CreateInstance <TransitionItemSO>());
     SerializedTransition = new SerializedTransition(_transition.FindProperty("Item"));
     _list = new ReorderableList(_transition, SerializedTransition.Conditions);
     SetupConditionsList(_list);
 }
Ejemplo n.º 4
0
 internal AddTransition(TransitionTableEditor editor)
 {
     helper               = this;
     helper.editor        = editor;
     transition           = new SerializedObject(CreateInstance <TransitionItemSO>());
     SerializedTransition = new SerializedTransition(transition.FindProperty(Item));
     list = new ReorderableList(transition, SerializedTransition.Conditions);
     SetConditionsList(list);