Example #1
0
    // Takes in the list of games and creates the appropriate labels etc. for those games
    public void buildList()
    {
        // Instantiate the game label manager and store the reference
        gameLabelManager = Instantiate(gameLabelManagerPrefab) as GameLabelManager;
        gameLabelManager.playlistManager = this;
        gameLabelManager.transform.SetParent(transform);
        gameLabelManager.transform.position = transform.position;
        gameLabelManager.initialize();

        // Instantiate the screenshot manager and store the reference
        screenshotManager = Instantiate(screenshotManagerPrefab) as ScreenshotManager;
        screenshotManager.playlistManager = this;
        screenshotManager.transform.SetParent (transform);
        screenshotManager.transform.position = transform.position;
        screenshotManager.initialize();
    }