VR游乐园学习(1)

(1)开始界面制作;

只有开始、退出按钮

 

 

 

 

 

 

 

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;

public class StartScene : MonoBehaviour {

    private Button btn_Start;
    private Button btn_Exit;

    private void Awake()
    {
        btn_Start = transform.Find("btn_start").GetComponent

使用代码进行按钮的监听,控制场景跳转以及退出;

转载于:https://www.cnblogs.com/dream-seeker-201907/p/11289626.html

你可能感兴趣的:(游戏)