/** * <summary> Loads uninitialised objects </summary> **/ private void LoadGameObjects() { if (finishScreenObjects == null) { finishScreenObjects = GameObject.FindGameObjectsWithTag("FinishScreen"); } if (attemptCollectionHandler == null) { attemptCollectionHandler = new AttemptCollectionHandler(); } }
/** * <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(); } }