unityscript - Unity3d: How to script/code a gameObject such as a cube to teleport you onto another gameObject? -


i new game developing industry , @ tutorials , stuff me that's besides point. use unity3d version 5 make games. making first game based on parkour. need know how code/script gameobject such cube make when step on it, teleports onto cube? in basic games maybe there lava , if fall it, teleports start of level.

you need these:

http://docs.unity3d.com/scriptreference/collider-istrigger.html

http://docs.unity3d.com/scriptreference/collider.ontriggerenter.html

http://docs.unity3d.com/scriptreference/transform-position.html

http://docs.unity3d.com/410/documentation/scriptreference/index.accessing_other_game_objects.html

that being said, these unity basics. think it's better start digging tutorials before trying on own. otherwise end wasting time trying figure out such things.