Kinda sorta finished

This commit is contained in:
lvrossem
2023-03-02 19:29:37 +01:00
parent 630c94836f
commit 56f3d0c195
3 changed files with 844 additions and 43 deletions

View File

@@ -5,18 +5,14 @@ using UnityEngine.UI;
using TMPro;
public class SpellingBeeThemeSelectionController : MonoBehaviour {
public Button buttonPrefab;
public Transform parentTransform;
private int buttonHeight = 140;
private int buttonWidth = 600;
// Start is called before the first frame update
void Start()
{
int canvasWidth = 1920;
int canvasHeight = 1080;
private int canvasWidth = 1920;
private int canvasHeight = 1080;
// Start is called before the first frame update
void Start() {
ThemeList themeList = ThemeLoader.loadJson();
for (int i = 0; i < themeList.themes.Length; i++) {
@@ -60,8 +56,7 @@ public class SpellingBeeThemeSelectionController : MonoBehaviour {
}
}
void OnButtonClick(string clickedTheme)
{
void OnButtonClick(string clickedTheme) {
PlayerPrefs.SetString("themeName", clickedTheme);
ChangeSceneOnClick.loadScene("SpellingBee");
}