using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class ShimingPanel : Base { public Text phonenumber; public Button changePdBtn; public Button Deregister_accountBtn; public Button User_AgreementBtn; public Button Privacy_PolicyBtn; public Button checkBtn; // Start is called before the first frame update void Start() { changePdBtn.onClick.AddListener(ChangeClick); Deregister_accountBtn.onClick.AddListener(Deregisterclick); User_AgreementBtn.onClick.AddListener(User_AgreementClick); Privacy_PolicyBtn.onClick.AddListener(PrivacyClick); checkBtn.onClick.AddListener(CheckClick); } void ChangeClick() { GameObject change = (GameObject)Instantiate(Resources.Load("LLPrefabs/Change_Password"),this.transform.parent); change.GetComponent().shimingPanel = this; } void Deregisterclick() { } void User_AgreementClick() { } void PrivacyClick() { } void CheckClick() { } // Update is called once per frame void Update() { } }