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.
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.