// Use this for initialization void Start() { _destination = new Vector3(); if (!_isViewer) { _robotCtrl = new m3piComm(); _robotCtrl.setName("B"); } step = 1; wCtrl = stylus.GetComponent <wandCtrl> (); }
// Use this for initialization void Start() { lineRenderer = GetComponent <LineRenderer> (); wCtrl = GetComponentInParent <wandCtrl> (); lineRenderer.SetWidth(startWidth, endWidth); startDrawdot = false; lineRenderer.SetPosition(0, origin.transform.position); lineRenderer.SetPosition(1, origin.transform.position); }