Пример #1
0
 //显示或关闭读条界面方法,在需要场景切换时调用此方法跳转到读条界面以及切换完成时销毁此界面
 public void ShowLoadingCanvas(bool m_Show, bool m_ShowImage)
 {
     if (m_Show)
     {
         EZComponent.AddConment <UILoading>();
         EZComponent.GetConment <UILoading>().ShowImage(m_ShowImage);
     }
     else
     {
         EZComponent.RemoveConment <UILoading>();
     }
 }
Пример #2
0
 //增加钻石
 private void AddDiamondMethod()
 {
     SafetyCutOff();
     Debug.Log("增加钻石");
     if (EZComponent.GetConment <Game_ShopPing>() != null)
     {
         EZComponent.GetConment <Game_ShopPing>().DiamondToggle.isOn = true; //导航到金币
     }
     else
     {
         if (EZComponent.GetConment <Game_Lobby>() != null)
         {
             EZComponent.RemoveConment <Game_Lobby>();
         }
         EZComponent.AddConment <Game_ShopPing>();
         //导航到金币
         EZComponent.GetConment <Game_ShopPing>().DiamondToggle.isOn = true;
     }
 }
Пример #3
0
 void CloseMethod()
 {
     EZComponent.RemoveConment <Game_MagicBox>();
     EZComponent.AddConment <Game_Lobby>();
 }
Пример #4
0
 //设置
 private void SetupMethod()
 {
     EZComponent.AddConment <Game_Setup>();
 }
Пример #5
0
 //实名认证
 private void CertidicationMethod()
 {
     EZComponent.AddConment <Game_RealName>();
 }
Пример #6
0
 /// <summary>
 /// 创建房间
 /// </summary>
 void CreateaRoomGameMethod()
 {
     EZComponent.AddConment <Game_Prepare>();
     EZComponent.GetConment <Game_Prepare>().ContModemethod(GameModeType.CreareaRoomGame);
 }
Пример #7
0
 /// <summary>
 /// 在线匹配
 /// </summary>
 void NetWorkingGameMethod()
 {
     EZComponent.AddConment <Game_Prepare>();
     EZComponent.GetConment <Game_Prepare>().ContModemethod(GameModeType.NetWorKingGame);
 }
Пример #8
0
 //盲盒的点击事件
 private void LuckyBoxMethod()
 {
     Debug.Log("盲盒的点击事件");
     EZComponent.AddConment <Game_MagicBox>();
     EZComponent.RemoveConment <Game_Lobby>();
 }
Пример #9
0
 //背包的点击事件
 private void KnapSackMethod()
 {
     Debug.Log("背包的点击事件");
     EZComponent.AddConment <Game_Knapsack>();
     EZComponent.RemoveConment <Game_Lobby>();
 }
Пример #10
0
 void  CloseMethod()
 {
     EZComponent.RemoveConment <Game_Knapsack>();
     EZComponent.AddConment <Game_Lobby>();
 }
Пример #11
0
 //退出商城的方法
 private void CloseMethod()
 {
     EZComponent.RemoveConment <Game_ShopPing>();
     EZComponent.AddConment <Game_Lobby>();
 }
Пример #12
0
 private void Start()
 {
     EZComponent.AddConment <Game_Lobby>();
     EZComponent.AddConment <Game_Head>();
     EZComponent.AddConment <Game_Single>();
 }
Пример #13
0
 void Close()
 {
     EZComponent.AddConment <Game_Lobby>();
     EZComponent.RemoveConment <Game_Task>();
 }
Пример #14
0
 void Close()
 {
     EZComponent.AddConment <Game_Lobby>();
     EZComponent.RemoveConment <Game_Ranking>();
 }
Пример #15
0
    public override void Start()
    {
        thisTra  = EZUIGroup.Open(this);
        CloseBtn = thisTra.Find("VisitorBGImage/Close").GetComponent <Button>();
        EnterBtn = thisTra.Find("Enter").GetComponent <Button>();

        CloseBtn.onClick.AddListener(() => { EZComponent.RemoveConment <VisitorsLogin>(); EZComponent.AddConment <MenuLogin>(); });
        EnterBtn.onClick.AddListener(VisitorLogin);
    }
Пример #16
0
 //商店的点击事件
 private void RingKingMethod()
 {
     Debug.Log("排行榜的点击事件");
     EZComponent.AddConment <Game_Ranking>();
     EZComponent.RemoveConment <Game_Lobby>();
 }
Пример #17
0
 //排行榜的点击事件
 private void ShopPingMethod()
 {
     Debug.Log("商店的点击事件");
     EZComponent.AddConment <Game_ShopPing>();
     EZComponent.RemoveConment <Game_Lobby>();
 }
Пример #18
0
 void CloseMatchingMethod()
 {
     EZComponent.AddConment <Game_UnifyUI>();
     EZComponent.GetConment <Game_UnifyUI>().UnifyUI.LoadBeOut.isOn = true;
 }
Пример #19
0
 //去广告的方法
 private void CloseAdMobMethod()
 {
     Debug.Log("去广告的方法");
     EZComponent.AddConment <Game_Abs>();
 }
Пример #20
0
 private void VistorLogin()
 {
     Debug.Log("Óο͵Ǽ");
     EZComponent.AddConment <VisitorsLogin>();
     EZComponent.RemoveConment <MenuLogin>();
 }
Пример #21
0
 /// <summary>
 /// 单机游戏
 /// </summary>
 void SingleGameMethod()
 {
     EZComponent.AddConment <Game_Prepare>();
     EZComponent.GetConment <Game_Prepare>().ContModemethod(GameModeType.SingleGame);
 }
Пример #22
0
 private void OtherLogin()
 {
     Debug.Log("ÆäËû·½Ê½µÇ¼");
     EZComponent.AddConment <OtherLogin>();
     EZComponent.RemoveConment <MenuLogin>();
 }
Пример #23
0
 /// <summary>
 /// 好友对战
 /// </summary>
 void FriendGameMethod()
 {
     EZComponent.AddConment <Game_Prepare>();
     EZComponent.GetConment <Game_Prepare>().ContModemethod(GameModeType.FriendGame);
 }
Пример #24
0
 //任务的点击事件
 private void TaskMethod()
 {
     Debug.Log("任务的点击事件");
     EZComponent.AddConment <Game_Task>();
     EZComponent.RemoveConment <Game_Lobby>();
 }
Пример #25
0
 private void LanguageMethod()
 {
     EZComponent.AddConment <Game_Language>();
 }
Пример #26
0
 private void HeadImageMethod()
 {
     EZComponent.AddConment <Game_HomePage>();
     EZComponent.RemoveConment <Game_Lobby>();
 }
Пример #27
0
 //每日礼物
 private void SigninMethod()
 {
     EZComponent.AddConment <Game_Gift>();
 }
Пример #28
0
 private void NickNameMethod()
 {
     EZComponent.AddConment <Game_EditData>();
 }
Пример #29
0
 //好友的点击事件
 private void FriendMethod()
 {
     Debug.Log("好友的点击事件");
     EZComponent.AddConment <Game_Friend>();
     EZComponent.RemoveConment <Game_Lobby>();
 }
Пример #30
0
    private Button FaceBookBtn; //FaceBook登录

    public override void Start()
    {
        thisTra     = EZUIGroup.Open(this);
        CloseBtn    = thisTra.Find("Close").GetComponent <Button>();
        QQBtn       = thisTra.Find("QQ").GetComponent <Button>();
        FaceBookBtn = thisTra.Find("FaceBook").GetComponent <Button>();
        CloseBtn.onClick.AddListener(() => { EZComponent.RemoveConment <OtherLogin>(); EZComponent.AddConment <MenuLogin>(); });
        QQBtn.onClick.AddListener(QQLogin);
        FaceBookBtn.onClick.AddListener(FaceBookLogin);
    }