Nextrek
Diff Revisions
167
vs
168
for /3DSpace/Assets/EasyTouch/Example/C# Example/Examples for EasyTouch/Example-OneFinger/DoubleTap.cs
|
@@ -26,7 +26,7 @@ |
26 |
26 |
|
// Verification that the action on the object |
27 |
27 |
|
if (gesture.pickObject == gameObject){ |
28 |
28 |
|
|
29 |
|
- |
gameObject.renderer.material.color = new Color( Random.Range(0.0f,1.0f), Random.Range(0.0f,1.0f), Random.Range(0.0f,1.0f)); |
|
29 |
+ |
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)); |
30 |
30 |
|
} |
31 |
31 |
|
} |
32 |
32 |
|
} |