Advertisement
Guest User

Manager

a guest
Aug 24th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. using UnityEngine;
  2. using UnityEngine.UI;
  3. using System.Collections;
  4.  
  5. public class UsernameMng : MonoBehaviour {
  6.  
  7. public Text userBox;
  8. public Button playButton;
  9.  
  10. void Update () {
  11. playButton.onClick.AddListener (delegate {this.ButtonClicked ();});
  12. PhotonNetwork.player.name = userBox.text;
  13. }
  14. public void ButtonClicked(){
  15. Application.LoadLevel("moba");
  16. }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement