Esempio n. 1
0
        public void Setup(UIMeshLine Line, int index, Vector3 StaticOffset, Transform DynamicOffset, LinePointManager manager)
        {
            this.Line          = Line;
            this.Index         = index;
            this.StaticOffset  = StaticOffset;
            this.DynamicOffset = DynamicOffset;

            manager.RegisterUpdater(this);
        }
Esempio n. 2
0
        private void PortStartDraggingAction()
        {
            Deselect();

            tmpLine = GameObject.Instantiate <GameObject>(Templates.EdgeTemplate).GetComponent <UIMeshLine>();
            tmpLine.transform.SetParent(GraphRenderingPanel);

            (v as PortVisualisation).gameObject.AddComponent <LinePointUpdater>().Setup(tmpLine, 0, Vector3.zero, tmpLine.transform, Manager);

            tmpMousePosition = new GameObject("Mouse Position").transform;
            tmpMousePosition.gameObject.AddComponent <LinePointUpdater>().Setup(tmpLine, 1, Vector3.zero, tmpLine.transform, Manager);
            tmpMousePosition.SetParent(GraphRenderingPanel);
            tmpMousePosition.gameObject.AddComponent <MouseTracker>();
        }
Esempio n. 3
0
 void Start()
 {
     m_line = GetComponent <UIMeshLine>();
 }
Esempio n. 4
0
 //construtor da classe
 public LineSet(UIMeshLine mLine)
 {
     lineMesh   = mLine;
     pointsList = new List <ChartElement>();
 }
Esempio n. 5
0
 void Start()
 {
     m_line = GetComponent<UIMeshLine>();
 }