Trying to find out how to create curve through script in unity3d