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