void Awake() { rightController = GameObject.Find("Controller (right)"); leftController = GameObject.Find("Controller (left)"); cScript = rightController.GetComponent <controllerManager>(); lScript = rightController.GetComponent <LaserPointer>(); colorScript = leftController.GetComponent <ColorPickerScript>(); source = GetComponent <AudioSource>(); }
// Use this for initialization void Awake() { rightController = GameObject.Find("Controller (right)"); leftController = GameObject.Find("Controller (left)"); strokeIcon = GameObject.Find("strokeIcon"); strokeScript = strokeIcon.GetComponent <strokeController>(); colorScript = leftController.GetComponent <ColorPickerScript>(); lScript = rightController.GetComponent <LaserPointer>(); cScript = rightController.GetComponent <controllerManager>(); //thisCanvasTexture = Instantiate(canvasTexture) as Texture2D; canvasTexture = new Texture2D(size, size); this.GetComponent <Renderer>().material.mainTexture = canvasTexture; }
void Awake() { leftController = GameObject.Find("Controller (left)"); cScript = leftController.GetComponent <controllerManager>(); }
// Use this for initialization void Awake() { rightController = GameObject.Find("Controller (right)"); cScript = rightController.GetComponent <controllerManager>(); startXpos = transform.position.x; }