PolicyPanel.cs 659 B

123456789101112131415161718192021222324252627
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace LoyalSoftSDK
  5. {
  6. public class PolicyPanel : BaseUIForm
  7. {
  8. private GameObject backBtn;
  9. // Use this for initialization
  10. void Start()
  11. {
  12. curUIType = UIType.Normal;
  13. backBtn = this.transform.Find("BackPanel/BackButton").gameObject;
  14. EventTriggerListener.Get(backBtn).onClick = OnBackBtnClick;
  15. }
  16. private void OnBackBtnClick(GameObject go)
  17. {
  18. base.GoBackParent();
  19. }
  20. // Update is called once per frame
  21. void Update()
  22. {
  23. }
  24. }
  25. }