fix: Make sure that we don't reference a deleted object
This commit is contained in:
parent
cd7195ffd1
commit
14fe75dd44
@ -19,6 +19,7 @@ public class SceneController : MonoBehaviour
|
||||
else
|
||||
{
|
||||
Destroy(this);
|
||||
return;
|
||||
}
|
||||
// Make this object stay around when switching scenes
|
||||
DontDestroyOnLoad(this.gameObject);
|
||||
|
Loading…
Reference in New Issue
Block a user