Example #1
0
 public void Logout()
 {
     ClearCookies();
     Player = new FengPlayer();
     Player.InitAsGuest();
     output.GetComponent <UILabel>().text = "Welcome, " + Player.Name;
 }
Example #2
0
    private void Start()
    {
        if (Player == null)
        {
            Player = new FengPlayer();
            Player.InitAsGuest();
        }

        if (Name != string.Empty)
        {
            NGUITools.SetActive(panelLogin, state: false);
            NGUITools.SetActive(panelStatus, state: true);
            StartCoroutine(GetInfo());
        }
        else
        {
            output.GetComponent <UILabel>().text = "Welcome, " + Player.Name;
        }
    }