// Use this for initialization void Start() { wiimote = GameObject.FindGameObjectWithTag("Wiimote").GetComponent <WiimoteScript>(); mode = 0; begLocs = new Dictionary <string, float> (); begLocs.Add("airplane", 0.4f); begLocs.Add("apple", 0.0f); begLocs.Add("bike", 0f); begLocs.Add("fish", 0.4f); begLocs.Add("lightbulb", 0.6f); begLocs.Add("monkey", 0.39f); begLocs.Add("pig", 0.25f); begLocs.Add("pizza", 0.07f); begLocs.Add("snowman", -0.06f); begLocs.Add("tree", 0.64f); }
void Awake() { isMousePressed = false; zPressed = false; canvasMask = LayerMask.GetMask("Canvas"); texture = new Texture2D(256, 256); GetComponent <Renderer>().material.mainTexture = texture; clear(); lastpoint = new Vector2(0, 0); initial = true; widthFactor = (texture.width / (topRight.position.x - bottomLeft.position.x)); heightFactor = (texture.height / (topRight.position.y - bottomLeft.position.y)); wiimote = GameObject.FindGameObjectWithTag("Wiimote").GetComponent <WiimoteScript> (); }
void Awake() { isMousePressed = false; zPressed = false; canvasMask = LayerMask.GetMask ("Canvas"); texture = new Texture2D(256, 256); GetComponent<Renderer>().material.mainTexture = texture; clear (); lastpoint = new Vector2 (0,0); initial = true; widthFactor = (texture.width / (topRight.position.x - bottomLeft.position.x)); heightFactor = (texture.height / (topRight.position.y - bottomLeft.position.y)); wiimote = GameObject.FindGameObjectWithTag ("Wiimote").GetComponent<WiimoteScript> (); }
// Use this for initialization void Start() { wiimote = GameObject.FindGameObjectWithTag("Wiimote").GetComponent<WiimoteScript>(); mode = 0; begLocs = new Dictionary<string, float> (); begLocs.Add ("airplane", 0.4f); begLocs.Add ("apple", 0.0f); begLocs.Add ("bike", 0f); begLocs.Add ("fish", 0.4f); begLocs.Add ("lightbulb", 0.6f); begLocs.Add ("monkey", 0.39f); begLocs.Add ("pig", 0.25f); begLocs.Add ("pizza", 0.07f); begLocs.Add ("snowman", -0.06f); begLocs.Add ("tree", 0.64f); }