コード例 #1
0
		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);
		}
コード例 #2
0
        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);
        }