private void Start() { if (initialized) Destroy(gameObject); instance = this; DontDestroyOnLoad(gameObject); Debug.Log("[Progress Tracking Parser] Starting Progress Controller..."); initialized = true; GameEvents.onLevelWasLoaded.Add(onSceneChange); GameEvents.OnProgressReached.Add(onReach); GameEvents.OnProgressAchieved.Add(onAchieve); GameEvents.OnProgressComplete.Add(onComplete); }
private void Start() { if (initialized) { Destroy(gameObject); } instance = this; DontDestroyOnLoad(gameObject); Debug.Log("[Progress Tracking Parser] Starting Progress Controller..."); initialized = true; GameEvents.onLevelWasLoaded.Add(onSceneChange); GameEvents.OnProgressReached.Add(onReach); GameEvents.OnProgressAchieved.Add(onAchieve); GameEvents.OnProgressComplete.Add(onComplete); }