Nextrek
Diff Revisions 167 vs 168 for /3DSpace/Assets/EasyTouch/Example/C# Example/Examples for EasyTouch/Example-Multiplefingers/_OtherScript/bord.js
@@ -7,7 +7,7 @@ | |||
7 | 7 | function Start(){ | |
8 | 8 | ||
9 | 9 | // Getting the main camera | |
10 | - | cam = GameObject.FindGameObjectWithTag("MainCamera").camera; | |
10 | + | cam = GameObject.FindGameObjectWithTag("MainCamera").GetComponent.<Camera>(); | |
11 | 11 | ||
12 | 12 | if (type==1) | |
13 | 13 | transform.position = cam.ScreenToWorldPoint( Vector3( 0, 0,8)); |