diff --git a/Samples~/Example/Scripts/ClickerRunner.cs b/Samples~/Example/Scripts/ClickerRunner.cs index 694d58c..86f7c21 100644 --- a/Samples~/Example/Scripts/ClickerRunner.cs +++ b/Samples~/Example/Scripts/ClickerRunner.cs @@ -1,6 +1,7 @@ using System.Collections; using uClicker; using UnityEngine; +using System; public class ClickerRunner : MonoBehaviour { @@ -9,7 +10,15 @@ public class ClickerRunner : MonoBehaviour // Use this for initialization IEnumerator Start() { - Manager.LoadProgress(); + + try + { + Manager.LoadProgress(); + } + catch (Exception e) + { + Debug.Log("No save!"); + } while (Application.isPlaying) { yield return new WaitForSecondsRealtime(1); @@ -23,4 +32,4 @@ private void OnDestroy() { Manager.SaveProgress(); } -} \ No newline at end of file +}