- Home /
This question was
closed Aug 16, 2018 at 12:17 AM by
brammie15 for the following reason:
nevermind i had a other instance of that script on another object
My GameObject refrence in my script keeps resetting if i die
If i die in my game i reload the scene to retry
but my refrence in my script keeps resetting if i compete the level and i dont die then it works how do i fix this?
Comment
You would have to provide code and some more info about your scene. Like methods where you die, change/reset scene etc...
Follow this Question
Related Questions
Raycashit Variable make empty/null/clear? 1 Answer
Accessing Variables (again) 2 Answers
Reference variable 2 Answers
How do I reset a script's values at run time to what they were at start? 3 Answers