Beispiel #1
0
 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>();
 }
Beispiel #2
0
 // 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;
 }
Beispiel #3
0
 void Awake()
 {
     leftController = GameObject.Find("Controller (left)");
     cScript        = leftController.GetComponent <controllerManager>();
 }
Beispiel #4
0
 // Use this for initialization
 void Awake()
 {
     rightController = GameObject.Find("Controller (right)");
     cScript         = rightController.GetComponent <controllerManager>();
     startXpos       = transform.position.x;
 }