Hi,
I have a silly doubt.
How is the State getting reassigned to Alive after it is changed to Transcending or Dying?
Is it that whenever a scene is loaded, the Rocket.cs is loaded again as well and hence, state becomes Alive again?
Hi Dhruv,
If the Rocket is not persistent, it gets destroyed when you load a new scene. If you added a Rocket in all your scenes, these Rocket objects will be new instances.
The default state is Alive. For this reason, all new Rocket objects will start with this state.
Hi Nina,
Thanks! Nina, I get it now. Because each scene has its own rocket instance, state is alive when the scene gets loaded.
I feel bad that i didn’t realize such a small thing.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.