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); }
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>(); }
void Start() { m_line = GetComponent <UIMeshLine>(); }
//construtor da classe public LineSet(UIMeshLine mLine) { lineMesh = mLine; pointsList = new List <ChartElement>(); }
void Start() { m_line = GetComponent<UIMeshLine>(); }