Exemplo n.º 1
0
 protected override void OnDraw()
 {
     _scrollPosition = GUI.BeginScrollView(WindowSize, _scrollPosition, new Rect(0, 0, 2000f, 0f));
     DrawNodes();
     DrawConnections();
     ConnectorView.Draw();
     GUI.EndScrollView();
 }
Exemplo n.º 2
0
 protected override void OnEnable()
 {
     //create a connector view
     View       = this.gameObject.AddComponent <ConnectorView>();
     View.Model = this;
 }