public void AutoLogin() { AccountDTO dto = new AccountDTO(); dto.account = LocalPlayerPrefabs.GetId(); dto.password = LocalPlayerPrefabs.GetPwd(); NetWorkScript.Instance.write(Protocol.TYPE_LOGIN, -1, LoginProtocol.LOGIN_CREQ, dto); }
void openCreate() { var n = LocalPlayerPrefabs.GetName(); if (!string.IsNullOrEmpty(n)) { cup.AutoCreate(n); } else { cup.open(); } }