public override void Response(Message msg) { if (msg.Value != null) { var acc = msg.Value as Account; AccountRT acrt = new AccountRT(acc); GameManager.Instance.chaManager.SetLocalPlayer(acrt); Debug.LogWarning("登陆成功"); GameManager.Instance.uiManager.ClearStack(); GameManager.Instance.scManager.LoadScene(1); } else { GameManager.Instance.uiManager.ShowMessageAsync("提示:帐号密码输入错误"); } }
public void SetLocalPlayer(AccountRT ac) { localPlayer = ac; }