public void Setup(GameInfoExtended gameInfo) { gameTitle.value = gameInfo.title; gameDescription.value = gameInfo.tutorialText; //showingTutorial = gameInfo.tutorialText != ""; currentGame = gameInfo; InternalSetup(); onGameLoaded.Raise(); }
public void Setup(GameInfoExtended game, string text, GamePack gamePack) { linkedGame = game; button.GetComponentInChildren <Text>().text = text; completedIcon.SetActive(game.completed); bool isAvailable = game.IsAvailable(gamePack); lockedIcon.SetActive(!isAvailable); button.interactable = isAvailable; button.onClick.AddListener(Clicked); }