Tell me where the answer. here is a little altered file but the namespace is not suitable.
the file made.
1625874–99816–$NewBehaviourScript.cs (6.27 KB)
Tell me where the answer. here is a little altered file but the namespace is not suitable.
the file made.
1625874–99816–$NewBehaviourScript.cs (6.27 KB)
Better to post code using the “[“CODE”]” “[”/CODE"]" tags. Remove the “” from the brackets.
Just because you are use JS syntax in C# replace "public function " with “public void” "Vector2 (0, 0) " to “new Vector2(0,0)” “GetComponent(MeshCollider).” to “GetComponent()” “if (Physics.Raycast(ray,hit, 100))” to “if (Physics.Raycast(ray,out hit, 100))” but its not all mistakes in this code i think…
Sorry iiiiiiiiiiiiiii. Thack you.
and there is an example of this type.