using System.Collections; using System.Collections.Generic; using UnityEngine; namespace LoyalSoftSDK { public class CloseFloatPanel : BaseUIForm { private GameObject trueBtn; private GameObject cancelBtn; // Use this for initialization public override void Init() { curUIType = UIType.Normal; trueBtn = this.transform.Find("BackPanel/TrueButton").gameObject; EventTriggerListener.Get(trueBtn).onClick = OnTrueBtnClick; cancelBtn = this.transform.Find("BackPanel/CancelButton").gameObject; EventTriggerListener.Get(cancelBtn).onClick = OnCancelBtnClick; } private void OnTrueBtnClick(GameObject go) { UIFormManager.GetInstance().CloseUIForm("FloatPanel"); Hiding(); } private void OnCancelBtnClick(GameObject go) { Hiding(); } // Update is called once per frame } }