How to set player position to a specific position?

I want to make the following thing.

  • When the player colide with a entrance collider, the player will be moved to the exit point.
  • I move the player object to the exit point position and know that the transform position is (-8.439795, -0.1257886, 13.56904).
  • I use code player.transform.position = new Vector3 (-8.439795f, player.transform.position.y, 13.56904f); to do the task.
  • When the player colide with a entrance collider, the transform.position of the player become (-4.953017f, 0.1186209f, 9.465188f). That position is not the exit point.

66969-2016-03-30-19-59-49-start.png

The the player object is a child of other objects.
66976-2016-03-30-21-11-08-unity-personal-64bit-game-01un.png
How to solve this problem?

if your player having any parent then it’ll behave like that