bonjour a tous j'ai un gros souci je suis en train de créer un jeu et en ce moment je suis sur la téléportation de mon personnage je voudrais que ce personnage se téléporte sur une autre scène ce que j'ai réussi à faire mais le souci et qu'il me téléporte a l'endroit ou le personnage a été implanter dans unity comment faire pour que je puise me téléporté à un endroit précis
voila le scripte que j'utilise ;
#pragma strict
var targetPosition : Vector3;
function OnTriggerEnter(other : Collider ) {
other.transform.position = targetPosition;
Application.LoadLevel("Map1");
}
*Google translation*
Hello everyone I have a big concern I am trying to create a game and now I'm on the teleportation of my character I want this character teleports to another scene that I managed to do but and concern that teleports me to the place where the character was implanted in unity how can I draw myself teleported to a specific location
here is the script that I use;
↧