Exemple #1
0
        protected override void Awake()
        {
            base.Awake();
            PanelType = UI_Panel.UI_PopPanel.WheelPanel;
            spinButton.onClick.AddListener(OnSpinClick);
            closeButton.onClick.AddListener(OnCloseClick);
            var menu = UIManager.GetUIPanel(UI_Panel.MenuPanel) as UI_MenuPanel;

            menu.rewardTargetTransform.Add(Reward.WheelTicket, ticketNumText.transform.parent);
        }
Exemple #2
0
 private void FlyOverCallback(Reward type)
 {
     if (type == Reward.WheelTicket)
     {
         var wheelPanel = UIManager.GetUIPanel(UI_Panel.UI_PopPanel.WheelPanel) as UI_PopWheelPanel;
         wheelPanel.RefreshTicketShowText();
         return;
     }
     StopCoroutine("ExpandTarget");
     StartCoroutine("ExpandTarget", type);
 }