Exemplo n.º 1
0
    public void Initialize(MovementStateMachineEditor stateMachineEditor, EntityEditedInfoWindow entityInfoEditor)
    {
        this.stateMachineEditor = stateMachineEditor;
        this.entityInfoEditor   = entityInfoEditor;

        RegisterToEvents();
    }
Exemplo n.º 2
0
    void Initialize()
    {
        //TODO if anything
        entityInfoEditor = CreateWindow <EntityEditedInfoWindow>(GetType());
        stateInfoEditor  = CreateWindow <StateEditorWindow>(GetType(), entityInfoEditor.GetType());

        entityInfoEditor.Initialize(this, stateInfoEditor);
        stateInfoEditor.Initialize(this, entityInfoEditor);

        entityInfoEditor.OnEditedEntityChanged -= OnEntityEditedChanged;
        entityInfoEditor.OnEditedEntityChanged += OnEntityEditedChanged;

        entityInfoEditor.OnEntityReloaded -= OnEntityEditedChanged;
        entityInfoEditor.OnEntityReloaded += OnEntityEditedChanged;

        changed = false;

        Nodes       = new List <EditorStateNode>();
        Transitions = new List <EditorTransition>();
    }