赞
踩
众所周知,Unity游戏就是靠一个又一个的场景Scene组成的,通过点击某个按钮,比如菜单按钮,实现场景的切换是Unity开发中的一个基础需求。
如果游戏比较简单,场景数目比较少,那么用静态指定的方法加载即可。
按钮挂载脚本如下:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;</
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。