public override void LoadView() { m_menuView = new BehaviourTreeMenuView( this ); m_menuView.CreateNewTree += CreateNewTree; AddSubview( m_menuView ); float fMenuHeight = m_menuView.ViewBounds.height; float fWindowWidth = this.maxSize.x; float fWindowHeight = this.maxSize.y; m_editorView = new NodeEditorView( this ); m_editorView.ViewBounds = new Rect( 0, fMenuHeight, fWindowWidth, fWindowHeight ); AddSubview( m_editorView ); }
public override void LoadView() { m_menuView = new BehaviourTreeMenuView(this); m_menuView.CreateNewTree += CreateNewTree; AddSubview(m_menuView); float fMenuHeight = m_menuView.ViewBounds.height; float fWindowWidth = this.maxSize.x; float fWindowHeight = this.maxSize.y; m_editorView = new NodeEditorView(this); m_editorView.ViewBounds = new Rect(0, fMenuHeight, fWindowWidth, fWindowHeight); AddSubview(m_editorView); }