public void Logout() { ClearCookies(); Player = new FengPlayer(); Player.InitAsGuest(); output.GetComponent <UILabel>().text = "Welcome, " + Player.Name; }
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; } }