public void Initialize(MovementStateMachineEditor stateMachineEditor, EntityEditedInfoWindow entityInfoEditor) { this.stateMachineEditor = stateMachineEditor; this.entityInfoEditor = entityInfoEditor; RegisterToEvents(); }
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>(); }