void OnMsgFriendShipOnceRecruitmentSucc_S2C(int slot) { Debug.Log("OnMsgFriendShipOnceRecruitmentSucc_S2C"); //清空格子列表 GachaPanelProp.Singleton.ResetSlotList(); GachaPanelProp.Singleton.AddCardSlot(slot); MainUIManager.Singleton.HideAllNeedHideWnd(); UIGachaPanel.GetInstance().ShowWindow(); UIGachaPanel.GetInstance().ResetPanelPos(); }
static public UIGachaPanel GetInstance() { UIGachaPanel self = UIManager.Singleton.GetUIWithoutLoad <UIGachaPanel>(); if (self != null) { return(self); } self = UIManager.Singleton.LoadUI <UIGachaPanel>("UI/UIGachaPanel", UIManager.Anchor.Center); return(self); }
public void OnMsgFriendShipMoreRecruitmentSucc_S2C(PacketReader p, object state) { Debug.Log("OnMsgFriendShipMoreRecruitmentSucc_S2C"); int cardNum = p.ReadInt32(); //清空格子列表 GachaPanelProp.Singleton.ResetSlotList(); for (int i = 1; i <= cardNum; i++) { int slot = p.ReadInt32(); GachaPanelProp.Singleton.AddCardSlot(slot); } MainUIManager.Singleton.HideAllNeedHideWnd(); UIGachaPanel.GetInstance().ShowWindow(); UIGachaPanel.GetInstance().ResetPanelPos(); //获得卡牌特效 //UIGetCard.GetInstance().SetName(cardName); //UIGetCard.GetInstance().ShowWindow(); //ShopProp.Singleton.OnUpdateRecruitmentPanel(); }