Hello all,
I am attempting to reset the level when specific conditions are met.
The method Die() is called on conditions met which calls Application.LoadLevel.
Application.LoadLevel expects an int scene index so I passed it Application.loadedLevel like so:
void Die(){
Application.LoadLevel(Application.loadedLevel);
}
The level does seem to be reset, but all objects (or object positions) seem to be created then instantly destroyed. If I instantiate a prefab on a timer, the object gets created but immediately destroyed.
Any assistance / documentation?