I add sphere in Island Demo in Unity 2.6.I want when the sphere touch the water to respawn it to the place where it was.Plase Help.
Thanks in advance
Add originalPosition variable to the sphere. Then call:
if(sphere.transform.position.y <= waterHeight)
sphere.transform.position = originalPosition;
can you write me all script-with variables,function,because have error