Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using UnityEngine.UI;
- using System.Collections;
- public class UsernameMng : MonoBehaviour {
- public Text userBox;
- public Button playButton;
- void Update () {
- playButton.onClick.AddListener (delegate {this.ButtonClicked ();});
- PhotonNetwork.player.name = userBox.text;
- }
- public void ButtonClicked(){
- Application.LoadLevel("moba");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement