using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; public class ShowOption : MonoBehaviour { public Text ctxt; int CharacterSelected = 0; // Use this for initialization void Start () { CharacterSelected = PlayerPrefs.GetInt("CharacterOption"); switch(CharacterSelected) { case 0: ctxt.text = "貂蟬"; break; case 1: ctxt.text = "武松"; break; } } // Update is called once per frame void Update () { } public void NextScene(int no) { SceneManager.LoadScene(no); } }