前のバージョンのスクリプトを、そのままつかってみると、 そのままは使えませんでした。。。
いくつかトラップ
まず、以下のエラー。
Gesture' does not contain a definition for
pickObject' and no extension methodpickObject' of type
Gesture' could be found (are you missing a using directive or an assembly reference?)
以前は、pickObjectだったものが、pickedObjectになってました。
後は、これ。
Type
Gesture' does not contain a definition for
GetTouchToWordlPoint' and no extension methodGetTouchToWordlPoint' of type
Gesture' could be found (are you missing a using directive or an assembly reference?)
GetTouchToWordlPoint()
GetTouchToWorldPoint()
これは、しばらく気がつきませんでした。
スペルミスの修正ですね。。。
この辺で、エラーが消えました。 まぁ、大したエラーではなくて良かった。
ということで、サンプルを作りました。