when my character died, i have restart the base scene and occur this:
Code: Select all
[Singleton] Instance SceneStreamer already destroyed on application quit. Won't create again - returning null.
UnityEngine.Debug:LogWarning(Object)
PixelCrushers.SceneStreamer.SceneStreamer:get_instance() (at Assets/Pixel Crushers/Scene Streamer/Scripts/SceneStreamer.cs:96)
PixelCrushers.SceneStreamer.SceneStreamer:SetCurrentScene(String) (at Assets/Pixel Crushers/Scene Streamer/Scripts/SceneStreamer.cs:364)
PixelCrushers.SceneStreamer.SceneEdge:SetCurrentScene() (at Assets/Pixel Crushers/Scene Streamer/Scripts/SceneEdge.cs:62)
PixelCrushers.SceneStreamer.SceneEdge:CheckEdge(String) (at Assets/Pixel Crushers/Scene Streamer/Scripts/SceneEdge.cs:56)
PixelCrushers.SceneStreamer.SceneEdge:OnTriggerEnter(Collider) (at Assets/Pixel Crushers/Scene Streamer/Scripts/SceneEdge.cs:38)
Code: Select all
NullReferenceException: Object reference not set to an instance of an object
PixelCrushers.SceneStreamer.SceneStreamer.SetCurrentScene (System.String sceneName) (at Assets/Pixel Crushers/Scene Streamer/Scripts/SceneStreamer.cs:364)
PixelCrushers.SceneStreamer.SceneEdge.SetCurrentScene () (at Assets/Pixel Crushers/Scene Streamer/Scripts/SceneEdge.cs:62)
PixelCrushers.SceneStreamer.SceneEdge.CheckEdge (System.String otherTag) (at Assets/Pixel Crushers/Scene Streamer/Scripts/SceneEdge.cs:56)
PixelCrushers.SceneStreamer.SceneEdge.OnTriggerEnter (UnityEngine.Collider other) (at Assets/Pixel Crushers/Scene Streamer/Scripts/SceneEdge.cs:38)
And stop loading the scenes.
Is there any way to restart the scenes by avoiding this problem?
thanks