void UpdatePanel(GamePanel panel, MinigameObject minigame) { panel.UpdateMinigame(minigame); panel.amtOfPlayers.text = "Players: " + panel.minigame.AmountOfPlayers.ToString(); panel.titleOfGame.text = panel.minigame.Name; panel.image.sprite = panel.minigame.Thumbnail; panel.topicOfGame.text = panel.minigame.topicString; }
public void UpdateMinigame(MinigameObject newMinigame) { minigame = newMinigame; }
void SelectedMinigame(MinigameObject minigame) { MenuSelection.goToScene = MenuSelection.introScene; MenuSelection.numPlayers = minigame.AmountOfPlayers; MenuSelection.goToMinigameScene = minigame.sceneName; }