예제 #1
0
        /**
         * <summary> Loads uninitialised objects </summary>
         **/
        private void LoadGameObjects()
        {
            if (finishScreenObjects == null)
            {
                finishScreenObjects = GameObject.FindGameObjectsWithTag("FinishScreen");
            }

            if (attemptCollectionHandler == null)
            {
                attemptCollectionHandler = new AttemptCollectionHandler();
            }
        }
예제 #2
0
        /**
         * <summary>Loads all game objects connected to the leaderboard and initialises
         * the AttemptCollectionHandler for storing the leaderboard to the disk</summary>
         **/
        private void LoadGameObjects()
        {
            if (leaderboardObjects == null)
            {
                leaderboardObjects = GameObject.FindGameObjectsWithTag("Leaderboard");
            }

            if (attemptCollectionHandler == null)
            {
                attemptCollectionHandler = new AttemptCollectionHandler();
            }
        }