页面跳转

利用scenes 场景跳转

File  ---> building settings 

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

using UnityEngine.SceneManagement;  //场景的命名空间

using System.IO;

using UnityEngine.UI;

public class JumpPage : MonoBehaviour {

    private Button button;

    public string NextSceneName;


    void Awake()

    {

        //获取Button

        Button button = gameObject.GetComponent

你可能感兴趣的:(页面跳转)