Quantcast
Viewing all articles
Browse latest Browse all 24

Answer by Detinator10

It ended up being that my REsume() code was looping over and over again because it would spawn more and more LoadingScripts which would then load more and more I got over it by using a static bool here's my code: using System.Collections; using Serialization; using System.Runtime.Serialization.Formatters.Binary; using System.IO; using System.Collections.Generic; using System; using System.Linq; public class LoadingScript : MonoBehaviour { private static bool noneedtoload; // Use this for initialization void Start () { Debug.Log (noneedtoload); if (!noneedtoload) { if (LevelSerializer.CanResume == true) { Debug.Log ("Canresume"); noneedtoload = true; LevelSerializer.Resume (); } else { Application.LoadLevel ("Title Screen"); } } } // Update is called once per frame }

Viewing all articles
Browse latest Browse all 24

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>