zoukankan      html  css  js  c++  java
  • unity 切换场景

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

    public class Register2 : MonoBehaviour {
        //登录按钮
        GameObject LoginBtnBjc ;

        public string naem = "logins";
        // Use this for initialization
        void Start () {
            LoginBtnBjc = GameObject.Find("Canvas/Buttonsss");
            Button LoginBtn = (Button)LoginBtnBjc.GetComponent<Button>();
            LoginBtn.onClick.AddListener(LoginAction);

        }
        void LoginAction()
        {
            Debug.Log ("LoginAction");
            Application.LoadLevel (naem);
        }

        // Update is called once per frame
        void Update () {
            
        }
    }

  • 相关阅读:
    多任务拷贝小案例
    进程池
    进程间的通信
    互斥锁
    创建函数/类的线程
    udp/tcp流程
    发布模块
    私有属性/方法的访问
    深入了解jQuery之整体架构
    (转)前端面试题
  • 原文地址:https://www.cnblogs.com/shenlaiyaoshi/p/8111792.html
Copyright © 2011-2022 走看看