That's the code.
Error is: BCE0023: No appropriate version of 'UnityEngine.Object.Instantiate' for the argument list '(UnityEngine.GameObject, UnityEngine.Vector3, UnityEngine.Vector3)' was found.
Any help would be great, thanks, JUstin W.
asked Nov 23 '10 at 10:53 PM
your rong to put double vector3(because is a distance).
The right order is to put the object then the distance and then the rotation. For the rotation you can put also:
answered Nov 23 '10 at 11:19 PM
The third parameter, rotation, is a quaternion rather than a Vector3. You can convert a Vector3 to a quaternion like so:
Also, Update runs once every single frame, and can't be delayed or interrupted. Therefore it can't be a coroutine and can't use yield. Start can be a coroutine, so put your loop in Start instead.
answered Nov 23 '10 at 11:24 PM