If I understand your question, I believe you intend to set tranform.localPosition instead of tranform.position
For future reference, if you post a code snippet, ALWAYS USE CODE TAGS:
How to use code tags: Using code tags properly
If I understand your question, I believe you intend to set tranform.localPosition instead of tranform.position
For future reference, if you post a code snippet, ALWAYS USE CODE TAGS:
How to use code tags: Using code tags properly