源代码详情

返回代码列表
C++

unity切换场景

作者: 超级管理员 发布时间: 2025-11-04 23:12 下载次数: 64 最后更新: 2025-11-18 10:06
多场景切换
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class tiaozhuan : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }
    public void start(int Scene)
    {
        SceneManager.LoadScene(Scene);

    }
}