首先是整体的游戏场景,本次场景是一个跑酷游戏

附上UI场景结构 ,GM为节点。

GM代码为
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class GM : MonoBehaviour
{
public GameObject panel; //此处panel是UI列表中的panel,需要挂上节点
void Start()
{
panel.SetActive(false); //将panel设置为false,默认不显示
}
void Update()
{
跑酷游戏场景与UI设计:跟随摄像机与结束重置功能

最低0.47元/天 解锁文章
1589

被折叠的 条评论
为什么被折叠?



