Subversion Repository Public Repository

Nextrek

Diff Revisions 167 vs 168 for /3DSpace/Assets/EasyTouch/Example/C# Example/Examples for EasyTouch/Example-OneFinger/LongTap.cs

Diff revisions: vs.
  @@ -36,7 +36,7 @@
36 36
37 37 // Verification that the action on the object
38 38 if (gesture.pickObject==gameObject){
39 - gameObject.renderer.material.color = new Color( Random.Range(0.0f,1.0f), Random.Range(0.0f,1.0f), Random.Range(0.0f,1.0f));
39 + gameObject.GetComponent<Renderer>().material.color = new Color( Random.Range(0.0f,1.0f), Random.Range(0.0f,1.0f), Random.Range(0.0f,1.0f));
40 40 }
41 41 }
42 42
  @@ -55,7 +55,7 @@
55 55
56 56 // Verification that the action on the object
57 57 if (gesture.pickObject==gameObject){
58 - gameObject.renderer.material.color = Color.white;
58 + gameObject.GetComponent<Renderer>().material.color = Color.white;
59 59 textMesh.text="Long tap";
60 60 }
61 61