예제 #1
0
        public override void Awake()
        {
            base.Awake();
            Instance = this;
            var      t  = controller.transform;
            UIButton bg = t.GetComponent <UIButton>("Bg");

            bg.onClick.Add(new EventDelegate(OnCancelButtonClick));
            com        = t.GetMonoILRComponent <CommonRatingDialogLT>("Content/CommonBuddyRatingGM");
            Tip        = t.FindEx("Content/Tips").gameObject;
            ConfirmBtn = t.FindEx("Content/ConfirmBtn").gameObject;
            TryBtn     = t.FindEx("Content/TryBtn").gameObject;

            t.GetComponent <UIButton>("Content/TryBtn").onClick.Add(new EventDelegate(OnTryBtnClick));
            t.GetComponent <UIButton>("Content/ConfirmBtn").onClick.Add(new EventDelegate(OnConfirmBtnClick));
        }
예제 #2
0
 public override void OnDestroy()
 {
     Instance = null;
 }