using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class Tiao : MonoBehaviour
{
? ? public Button[] btn;
? ? // Start is called before the first frame update
? ? void Start()
? ? {
? ? ? ? btn[0] = GetComponent<Button>();
? ? ? ? btn[0].onClick.AddListener(OnClick);
? ? }
? ? void OnClick()
? ? {
? ? ? ? SceneManager.LoadScene("Car1");//level1為我們要切換到的場景
? ? ? ? //PlayerPrefs.GetFloat()
? ? }
? ? // Update is called once per frame
? ? void Update()
? ? {
? ? }
}