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