You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.1 KiB
40 lines
1.1 KiB
using UnityEngine; |
|
using System.Collections; |
|
using UnityEngine.UI; |
|
using AX.NetworkSystem; |
|
|
|
public class ShowUserInfoWin : MonoBehaviour { |
|
|
|
public Text CurrentUserInfoText; |
|
public GameObject UserInfoEditPanel; |
|
public GameObject UserInfoPanel; |
|
public GameObject ModifyPasswordPanel; |
|
|
|
private UserInfo cunrrentUser; |
|
// Use this for initialization |
|
void Start () { |
|
this.GetComponent<Button>().onClick.AddListener(UserInfoWinCtrl); |
|
|
|
cunrrentUser = MySelf.mySelf; |
|
if(cunrrentUser != null) |
|
{ |
|
CurrentUserInfoText.text += cunrrentUser.ID; |
|
} |
|
} |
|
|
|
// Update is called once per frame |
|
void Update () { |
|
|
|
} |
|
|
|
public void UserInfoWinCtrl() |
|
{ |
|
if (UserInfoEditPanel.GetComponent<GET_DEPTS_REPLY>().Depts.Count == 0) |
|
NetworkManager.Default.SendRequestAsync("GET_DEPT_REQUEST"); |
|
|
|
UserInfoEditPanel.SetActive(true); |
|
UserInfoPanel.SetActive(true); |
|
UserInfoPanel.transform.Find("Text").GetComponent<Text>().text = ""; |
|
ModifyPasswordPanel.SetActive(false); |
|
} |
|
}
|
|
|