Exemple #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>();
     }
 }
Exemple #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;
     }
 }
Exemple #3
0
 void CloseMethod()
 {
     EZComponent.RemoveConment <Game_MagicBox>();
     EZComponent.AddConment <Game_Lobby>();
 }
Exemple #4
0
 //设置
 private void SetupMethod()
 {
     EZComponent.AddConment <Game_Setup>();
 }
Exemple #5
0
 //实名认证
 private void CertidicationMethod()
 {
     EZComponent.AddConment <Game_RealName>();
 }
Exemple #6
0
 /// <summary>
 /// 创建房间
 /// </summary>
 void CreateaRoomGameMethod()
 {
     EZComponent.AddConment <Game_Prepare>();
     EZComponent.GetConment <Game_Prepare>().ContModemethod(GameModeType.CreareaRoomGame);
 }
Exemple #7
0
 /// <summary>
 /// 在线匹配
 /// </summary>
 void NetWorkingGameMethod()
 {
     EZComponent.AddConment <Game_Prepare>();
     EZComponent.GetConment <Game_Prepare>().ContModemethod(GameModeType.NetWorKingGame);
 }
Exemple #8
0
 //盲盒的点击事件
 private void LuckyBoxMethod()
 {
     Debug.Log("盲盒的点击事件");
     EZComponent.AddConment <Game_MagicBox>();
     EZComponent.RemoveConment <Game_Lobby>();
 }
Exemple #9
0
 //背包的点击事件
 private void KnapSackMethod()
 {
     Debug.Log("背包的点击事件");
     EZComponent.AddConment <Game_Knapsack>();
     EZComponent.RemoveConment <Game_Lobby>();
 }
Exemple #10
0
 void  CloseMethod()
 {
     EZComponent.RemoveConment <Game_Knapsack>();
     EZComponent.AddConment <Game_Lobby>();
 }
Exemple #11
0
 //退出商城的方法
 private void CloseMethod()
 {
     EZComponent.RemoveConment <Game_ShopPing>();
     EZComponent.AddConment <Game_Lobby>();
 }
Exemple #12
0
 private void Start()
 {
     EZComponent.AddConment <Game_Lobby>();
     EZComponent.AddConment <Game_Head>();
     EZComponent.AddConment <Game_Single>();
 }
Exemple #13
0
 void Close()
 {
     EZComponent.AddConment <Game_Lobby>();
     EZComponent.RemoveConment <Game_Task>();
 }
Exemple #14
0
 void Close()
 {
     EZComponent.AddConment <Game_Lobby>();
     EZComponent.RemoveConment <Game_Ranking>();
 }
Exemple #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);
    }
Exemple #16
0
 //商店的点击事件
 private void RingKingMethod()
 {
     Debug.Log("排行榜的点击事件");
     EZComponent.AddConment <Game_Ranking>();
     EZComponent.RemoveConment <Game_Lobby>();
 }
Exemple #17
0
 //排行榜的点击事件
 private void ShopPingMethod()
 {
     Debug.Log("商店的点击事件");
     EZComponent.AddConment <Game_ShopPing>();
     EZComponent.RemoveConment <Game_Lobby>();
 }
Exemple #18
0
 void CloseMatchingMethod()
 {
     EZComponent.AddConment <Game_UnifyUI>();
     EZComponent.GetConment <Game_UnifyUI>().UnifyUI.LoadBeOut.isOn = true;
 }
Exemple #19
0
 //去广告的方法
 private void CloseAdMobMethod()
 {
     Debug.Log("去广告的方法");
     EZComponent.AddConment <Game_Abs>();
 }
Exemple #20
0
 private void VistorLogin()
 {
     Debug.Log("Óο͵Ǽ");
     EZComponent.AddConment <VisitorsLogin>();
     EZComponent.RemoveConment <MenuLogin>();
 }
Exemple #21
0
 /// <summary>
 /// 单机游戏
 /// </summary>
 void SingleGameMethod()
 {
     EZComponent.AddConment <Game_Prepare>();
     EZComponent.GetConment <Game_Prepare>().ContModemethod(GameModeType.SingleGame);
 }
Exemple #22
0
 private void OtherLogin()
 {
     Debug.Log("ÆäËû·½Ê½µÇ¼");
     EZComponent.AddConment <OtherLogin>();
     EZComponent.RemoveConment <MenuLogin>();
 }
Exemple #23
0
 /// <summary>
 /// 好友对战
 /// </summary>
 void FriendGameMethod()
 {
     EZComponent.AddConment <Game_Prepare>();
     EZComponent.GetConment <Game_Prepare>().ContModemethod(GameModeType.FriendGame);
 }
Exemple #24
0
 //任务的点击事件
 private void TaskMethod()
 {
     Debug.Log("任务的点击事件");
     EZComponent.AddConment <Game_Task>();
     EZComponent.RemoveConment <Game_Lobby>();
 }
Exemple #25
0
 private void LanguageMethod()
 {
     EZComponent.AddConment <Game_Language>();
 }
Exemple #26
0
 private void HeadImageMethod()
 {
     EZComponent.AddConment <Game_HomePage>();
     EZComponent.RemoveConment <Game_Lobby>();
 }
Exemple #27
0
 //每日礼物
 private void SigninMethod()
 {
     EZComponent.AddConment <Game_Gift>();
 }
Exemple #28
0
 private void NickNameMethod()
 {
     EZComponent.AddConment <Game_EditData>();
 }
Exemple #29
0
 //好友的点击事件
 private void FriendMethod()
 {
     Debug.Log("好友的点击事件");
     EZComponent.AddConment <Game_Friend>();
     EZComponent.RemoveConment <Game_Lobby>();
 }
Exemple #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);
    }