public void EnterGame() { if (DealServer.sbyaccount(account.text) == psw.text) { GameObject NormalGamePanel = LoadBundleOperation.LoadBundle("NormalGamePanel.prefab"); NormalGamePanel.transform.SetParent(transform.parent.transform); NormalGamePanel.GetComponent <RectTransform>().offsetMax = Vector2.zero; NormalGamePanel.GetComponent <RectTransform>().offsetMin = Vector2.zero; this.gameObject.SetActive(false); Destroy(this.gameObject, 0.1f); } else { showmessage.text = "用户名或密码错误!"; showmessage.color = Color.red; } }
// Use this for initialization void Start() { ds = GetComponent <DealServer>(); }