Kinda sorta finished
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user