Esempio n. 1
0
        private void OnSettle_ShowStatistics(CUIEvent uiEvent)
        {
            CSettlementView.DoCoinTweenEnd();
            CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(PATH_PVP_SETTLE_PVP);

            if (form != null)
            {
                if ((form != null) && (form.gameObject != null))
                {
                    CSettlementView.SetTab(1, form.gameObject);
                }
                Transform transform = form.gameObject.transform.Find("PanelB/ButtonGrid");
                if (transform != null)
                {
                    transform.gameObject.CustomSetActive(false);
                }
                Transform transform2 = form.gameObject.transform.Find("PanelB/StateChangeTimer");
                if (transform2 != null)
                {
                    CUITimerScript component = transform2.GetComponent <CUITimerScript>();
                    if (component != null)
                    {
                        component.StartTimer();
                    }
                }
                Transform transform3 = form.gameObject.transform.Find("PanelB/lblWait");
                if (transform3 != null)
                {
                    transform3.gameObject.CustomSetActive(true);
                }
            }
        }
 public static void SetTab(int index, GameObject root)
 {
     if (index == 0)
     {
         Utility.FindChild(root, "PanelA").CustomSetActive(true);
         Utility.FindChild(root, "PanelB").CustomSetActive(false);
     }
     else if (index == 1)
     {
         CSettlementView.DoCoinTweenEnd();
         CSettlementView.DoExpTweenEnd();
         Utility.FindChild(root, "PanelA").CustomSetActive(false);
         Utility.FindChild(root, "PanelB").CustomSetActive(true);
         MonoSingleton <NewbieGuideManager> .GetInstance().CheckTriggerTime(NewbieGuideTriggerTimeType.pvpFin, new uint[0]);
     }
 }