Hi,
I am trying to find a script to make the level change into another scene which looks a little bit different. That works out, but I want to change my character into another one. I just grab another character and put it into the 2nd scene. But the problem is that I don’t know where the characters last position was. I had an idea for a script that keeps the coordinates of the character, and with the use of don’tdelete the script ( object with script) would come into the 2nd level. Maybe another script in the 2nd level can use the var of the coordinates, and warp the new character to it’s old position.
I am not very good in scripting, but I don’t have the time to figure this out by myself. I tried to find something, but I really couldn’t find anything.
It would be really great if somebody could help me with this, and I will really appreciate it.
Thank you very much!
Do I need to add the mydata script and the usage scene 1 to the character in the 1st scene, and the usage 2 to the char in the 2nd scene? Or how does that work?
No, you should not add this script to any game object, it is not MonoBehaviour succesor. Just place this file at your project.
UPD: I change code example, there was some errors, sorry)))
P.S.: “Unexpected token: Vector3” error occurs because you need to add using UnityEngine; directive in the begining of the file (I added it in this example).