JamesC159 / Springy

0 stars 0 forks source link

Maintain References Across Scene Reloading #1

Open JamesC159 opened 7 years ago

JamesC159 commented 7 years ago

Branch - james_working

When reloading the scene after pressing restart when the payer dies, object references are lost.

My intended solution was to make our reference objects public in the script so we can hook them into the scripts from the editor. When instantiating clones, use private game objects to hold the clone reference while still maintaining the editor reference.

I dont know if this works.

daveyJones49 commented 7 years ago

Is utilizing DontDestroyOnLoad viable here? I can't think of a case where we need an in game object destroyed between sessions.