Quantcast
Channel: Answers by "Detinator10"
Viewing all articles
Browse latest Browse all 24

Answer by Detinator10

$
0
0
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

Latest Images

Trending Articles





Latest Images