32 lines
935 B
C#
32 lines
935 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Continentis.MainGame;
|
|
using Continentis.MainGame.Card;
|
|
using I2.Loc;
|
|
using SLSFramework.General;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace Continentis.Menu
|
|
{
|
|
public class MenuManager : MonoBehaviour
|
|
{
|
|
//public SerializableDictionary<string, List<CardData>> test;
|
|
public Button enterGameButton;
|
|
public string languageToSet;
|
|
|
|
private void Start()
|
|
{
|
|
enterGameButton.onClick.AddListener(EnterGame);
|
|
enterGameButton.interactable = true;
|
|
//Set Language to Simplified Chinese
|
|
if(string.IsNullOrEmpty(languageToSet)) languageToSet = "Simplified Chinese";
|
|
LocalizationManager.CurrentLanguage = languageToSet;
|
|
}
|
|
|
|
public void EnterGame()
|
|
{
|
|
UnityEngine.SceneManagement.SceneManager.LoadScene("GameScene");
|
|
}
|
|
}
|
|
} |