Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

  • 0
Sign in to follow this  
silasfriedrich

Do stuff after Application.LoadLevel

Question

Hi everyone :-H ,

I have a script that should make a object with the tag Player the parent of the game object with the script on. Now the object with the tag Player is in a other scene, and that game object that should get the child of the Player have a script with a

Please login or register to see this code.

function so it does not get deleted if the game loads the new scene. Now I tried it with it with this script:

Please login or register to see this code.

But this only works if the game object with the tag Player is in the same scene. Now I think it should work with something like this:

Please login or register to see this code.

But it doesnt work.

Edited by silasfriedrich

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

If you want to do something after Application.LoadLevel, just have a Start function. That's all you need

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...