コード例 #1
0
    public void Initialize(MovementStateMachineEditor stateMachineEditor, EntityEditedInfoWindow entityInfoEditor)
    {
        this.stateMachineEditor = stateMachineEditor;
        this.entityInfoEditor   = entityInfoEditor;

        RegisterToEvents();
    }
コード例 #2
0
    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;
    }
コード例 #3
0
    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;
    }
コード例 #4
0
 public TransitionCreationHelper(MovementStateMachineEditor editor)
 {
     this.editor = editor ?? throw new ArgumentNullException(nameof(editor));
 }
コード例 #5
0
 public void Initialize(MovementStateMachineEditor stateMachineEditor, StateEditorWindow stateEditor)
 {
     this.stateMachineEditor = stateMachineEditor;
     this.stateEditor        = stateEditor;
 }