public void Initialize(MovementStateMachineEditor stateMachineEditor, EntityEditedInfoWindow entityInfoEditor) { this.stateMachineEditor = stateMachineEditor; this.entityInfoEditor = entityInfoEditor; RegisterToEvents(); }
public EditorTransition(TransitionOutPoint fromNodeOutPoint, EditorStateNode toNode, MovementStateMachineEditor editor) { this.editor = editor ?? throw new ArgumentNullException(nameof(editor)); this.fromNodeOutPoint = fromNodeOutPoint ?? throw new ArgumentNullException(nameof(fromNodeOutPoint)); this.toNode = toNode ?? throw new ArgumentNullException(nameof(toNode)); fromID = fromNodeOutPoint.Node.ID; toID = toNode.ID; Transition = new Transition(fromNodeOutPoint.Type, toID, fromNodeOutPoint.Node.State); fromNodeOutPoint.Node.State.AddTransition(Transition); fromNodeOutPoint.Transition = this; causeFoldOut = false; }
public EditorTransition(Transition t, MovementStateMachineEditor editor) { this.editor = editor; this.Transition = t; fromID = t.StateBelongingToID; toID = t.NextStateID; fromNodeOutPoint = editor.GetStateByID(fromID).GetTransitionOutPoint(t.Type); fromNodeOutPoint.Transition = this; toNode = editor.GetStateByID(toID); causeFoldOut = false; }
public TransitionCreationHelper(MovementStateMachineEditor editor) { this.editor = editor ?? throw new ArgumentNullException(nameof(editor)); }
public void Initialize(MovementStateMachineEditor stateMachineEditor, StateEditorWindow stateEditor) { this.stateMachineEditor = stateMachineEditor; this.stateEditor = stateEditor; }