Example #1
0
 public void OnBuyUnlockClick()
 {
     UMengPlugin.UMengEvent(EventId.BUY_CHARACTER, new Dictionary <string, object> {
         { "code", CurCharacterCode }
     });                                                                                                        //发送统计事件
     Requester.Instance.Send(new BuyCharacter(CurCharacterCode));
 }
Example #2
0
 public void OnSettingsClick()
 {
     SettingsPanel.Load();
     UMengPlugin.UMengEvent(EventId.HOME_SETTING, new Dictionary <string, object> {
         { "exp", CommonData.MyUser.Exp }
     });
 }
Example #3
0
        public void OnDetailClick()
        {
            UMengPlugin.UMengEvent(EventId.VEGETABLE_EXPLAIN, new Dictionary <string, object> {
                { "code", _userVegetable.VegetableCode }, { "level", _userVegetable.CurrentLevel }
            });

            //这个复杂了,每个技能的介绍或许还不一样
            var vegetableIntroTextConfig =
                ConfigManager.GetConfig(ConfigManager.ConfigType.VegetableIntroTextConfig) as VegetableIntroTextConfig;

            if (vegetableIntroTextConfig == null)
            {
                Debug.LogError("没有VegetableIntroTextConfig");
                return;
            }
            var vegetableIntro =
                vegetableIntroTextConfig.IntroList.Find(x => x.VegetableCode == _userVegetable.VegetableCode);

            if (vegetableIntro == null)
            {
                Debug.LogError("没有vegetableIntro.Code:" + _userVegetable.VegetableCode);
                return;
            }
            MorlnTooltip.Show(vegetableIntro.IntroContent, MainRoot.InverseTransformPoint(VegetableArtContentContainer.position));
        }
Example #4
0
 public void FinishEditIuput()
 {
     UMengPlugin.UMengEvent(EventId.NICKNAME_EDIT,
                            new Dictionary <string, object> {
         { "name_length", IptNickname.text.Length }
     });
 }
Example #5
0
        public void ConfirmReinforce()
        {
            UMengPlugin.UMengEvent(EventId.ADD_TEAM,
                                   new Dictionary <string, object>
            {
                { "rand", _reinforce1 != null },
                { "frie", _reinforce2 != null }
            });

            GameData.Reinforce1         = _reinforce1;                                                      //应用选择的玩家
            GameData.Reinforce1Portrait = _reinforce1 == null ? null : FriendSlot1.TxrHeadIcon.mainTexture; //TODO:陌生人的头像怎么办
            GameData.Reinforce2         = _reinforce2;
            GameData.Reinforce2Portrait = _reinforce2 == null ? null : FriendSlot2.TxrHeadIcon.mainTexture;
            if (MatchUI.Instance)
            {
                MatchUI.Instance.DidAddFriend();
            }
            base.OnConfirmClick();

            var friendIdList = new List <string>();

            if (GameData.Reinforce1 != null)
            {
                friendIdList.Add(GameData.Reinforce1.UserId);
            }
            if (GameData.Reinforce2 != null)
            {
                friendIdList.Add(GameData.Reinforce2.UserId);
            }
            Requester.Instance.Send(new RequestStartChallenge(GameData.LastChallengeID)
            {
                FriendUserIdList = friendIdList
            });
        }
Example #6
0
 public void OnChuzhanClick()
 {
     UMengPlugin.UMengEvent(EventId.USE_CHARACTER, new Dictionary <string, object> {
         { "code", CurCharacterCode }
     });                                                                                                            //发送统计事件
     Requester.Instance.Send(new ChangeCharacter(CurCharacterCode));
 }
Example #7
0
        public override void OnBuyClick()
        {
            UMengPlugin.UMengEvent(EventId.BUY_DIAMOND, new Dictionary <string, object> {
                { "name", _recharge.Name }
            });

            AlertDialog.Load("充值功能尚未开放");
        }
Example #8
0
        public void OnUpgradeClick()
        {
            UMengPlugin.UMengEvent(EventId.VEGETABLE_UPGRADE, new Dictionary <string, object> {
                { "code", _userVegetable.VegetableCode }, { "level", _userVegetable.CurrentLevel }
            });

            Requester.Instance.Send(new UpgradeVegetable(_userVegetable.VegetableCode));
        }
Example #9
0
    private void OnClick()
    {
        switch (ButtonType)
        {
        case ButtonTypeEnum.BuyHeart:

            UMengPlugin.UMengEvent(EventId.GOTO_HEART,
                                   new Dictionary <string, object>
            {
                { "from", MainRoot.Instance.CurrentViewStateName },
                { "heart", CommonData.HeartData.Count }
            });

            ShopPanel.Load();
            if (ShopPanel.Instance != null)
            {
                ShopPanel.Instance.RefreshToState(ShopPanel.ShopState.ExchangeHeart);
            }
            break;

        case ButtonTypeEnum.BuyCoin:

            UMengPlugin.UMengEvent(EventId.GOTO_COIN,
                                   new Dictionary <string, object>
            {
                { "from", MainRoot.Instance.CurrentViewStateName },
                { "coin", CommonData.MyUser.Money10 }
            });

            ShopPanel.Load();
            if (ShopPanel.Instance != null)
            {
                ShopPanel.Instance.RefreshToState(ShopPanel.ShopState.ExchangeMoney10);
            }
            break;

        case ButtonTypeEnum.BuyDiamond:

            UMengPlugin.UMengEvent(EventId.GOTO_DIAMOND,
                                   new Dictionary <string, object>
            {
                { "from", MainRoot.Instance.CurrentViewStateName },
                { "diamond", CommonData.MyUser.Money1 }
            });

            ShopPanel.Load();
            if (ShopPanel.Instance != null)
            {
                ShopPanel.Instance.RefreshToState(ShopPanel.ShopState.Recharge);
            }
            break;

        default:
            Debug.LogError("超出范围", this);
            break;
        }
    }
Example #10
0
        public void OnSkillClick()
        {
            UMengPlugin.UMengEvent(EventId.HOME_SKILL,
                                   new Dictionary <string, object> {
                { "level", CommonData.MyUser.Level }
            });

            ManageSkillPanel.Load();
        }
Example #11
0
        public void OnGardenClick()
        {
            UMengPlugin.UMengEvent(EventId.HOME_CAIYUAN,
                                   new Dictionary <string, object> {
                { "level", CommonData.MyUser.Level }
            });

            GardenPanel.Load();
        }
Example #12
0
 public void DisConnectToServer()
 {
     Debug.LogError("DisConnectToServer");
     UMengPlugin.UMengEvent(EventId.DIS_CONNECT_SERVER,
                            new Dictionary <string, object> {
         { "net", (int)Application.internetReachability }
     });
     AlertDialog.Load("网络已经断开,请重试", "确定", ReLogin);
 }
Example #13
0
        public void OnEquipmentClick()
        {
            UMengPlugin.UMengEvent(EventId.HOME_EQUIP,
                                   new Dictionary <string, object> {
                { "level", CommonData.MyUser.Level }
            });

            EquipPanel.Load();
        }
Example #14
0
        public void OnShopClick()
        {
            UMengPlugin.UMengEvent(EventId.HOME_SHOP, null);

            ShopPanel.Load();
            if (ShopPanel.Instance != null)
            {
                ShopPanel.Instance.RefreshToState(ShopPanel.ShopState.Recharge);
            }
        }
Example #15
0
        public override void OnBuyClick()
        {
            UMengPlugin.UMengEvent(
                (CurrencyType)_exchange.ToType == CurrencyType.Coin ? EventId.BUY_COIN : EventId.BUY_HEART,
                new Dictionary <string, object> {
                { "name", _exchange.Name }
            });

            Requester.Instance.Send(new RequestExchange(_exchange.Name, 1));
        }
Example #16
0
        public void OnRealTimeFightingClick()
        {
            CommonData.RivalUser     = null;
            GameData.LastChallengeID = null;
            Requester.Instance.Send(new NewMatch());//发送消息
            MainRoot.Goto(MainRoot.UIStateName.Match);
            MatchUI.Instance.RefreshBeforeMatch();

            UMengPlugin.UMengEvent(EventId.HOME_MULTI, null);
        }
Example #17
0
 public void OnMailBoxClick()
 {
     MailBoxPanel.Load();
     UMengPlugin.UMengEvent(EventId.HOME_MAIL,
                            new Dictionary <string, object>
     {
         { "all", CommonData.MailList.Count },
         { "unread", CommonData.MailList.Count(x => !x.IsRead) }
     });
 }
Example #18
0
        /// <summary>
        /// 可利用ButtonMessage脚本向此组件发送OnDescriptionClick事件,通知上层显示大关描述
        /// </summary>
        public void OnDescriptionClick()
        {
            UMengPlugin.UMengEvent(EventId.PUSHLEVEL_CLICK_ME,
                                   new Dictionary <string, object> {
                { "major", Island.MajorLevelId }
            });

            if (Island)
            {
                Island.ShowDescription();
            }
        }
Example #19
0
 public void GotoPreviousCharacter()
 {
     UMengPlugin.UMengEvent(EventId.SWITCH_CHARACTER_VIEW,
                            new Dictionary <string, object> {
         { "from_ind", _index }, { "to_ind", (_index - 1) }
     });                                                                                                   //发送统计事件
     if (_index <= 0)
     {
         BtnLeft.SetActive(false);
         return;
     }
     _index--;
     UpperSetAndRefresh(_index);
 }
Example #20
0
        public void Prompt()
        {
            UMengPlugin.UMengEvent(EventId.VEGETABLE_ACCELERATE, new Dictionary <string, object> {
                { "code", _userVegetable.VegetableCode }, { "level", _userVegetable.CurrentLevel }
            });

            if (_userVegetable != null)
            {
                AlertDialog.Load("确定使用" + new Currency(1, 1).GetCurrencyLabelWithIcon() + "立即完成培育吗", "确认",
                                 () => Requester.Instance.Send(
                                     new SpeedUpVegetableUpgrade(_userVegetable.VegetableCode)), "不了", null,
                                 true);
            }
        }
Example #21
0
 public void GotoNextCharacter()
 {
     UMengPlugin.UMengEvent(EventId.SWITCH_CHARACTER_VIEW,
                            new Dictionary <string, object> {
         { "from_ind", _index }, { "to_ind", (_index + 1) }
     });                                                                                                         //发送统计事件
     if (_index >= _characterList.Count - 1)
     {
         BtnRight.SetActive(false);
         return;
     }
     _index++;
     UpperSetAndRefresh(_index);
 }
Example #22
0
        void OnDoubleClick()
        {
            UMengPlugin.UMengEvent(!_worn ? EventId.EQUIP_WEAR : EventId.EQUIP_UNWEAR, new Dictionary <string, object> {
                { "code", _equip.EquipCode }
            });                                                                                                                                         //发送统计事件

            var userCharacter = CommonData.MyCharacterList.Find(x => x.CharacterCode == EquipPanel.CurCharacterCode);

            if (userCharacter != null)
            {
                var worn = userCharacter.WearEquipList.Exists(x => x == _equip.EquipCode);
                Requester.Instance.Send(new UseEquip(EquipPanel.CurCharacterCode, _equip.EquipCode, !worn));
            }
            MorlnTooltip.ForceHide();//竟然会触发两次OnClick,可以理解
        }
Example #23
0
        void OnUpgradeClick()
        {
            var canUpgradeNow = _skill.UnlockLevelList[_level] <= CommonData.MyUser.Level;

            UMengPlugin.UMengEvent(EventId.SKILL_UPGRADE,
                                   new Dictionary <string, object>
            {
                { "code", _skill.SkillCode },
                { "level", _level },
                { "can_upgrade", canUpgradeNow }
            });

            if (canUpgradeNow)
            {
                var cost      = _skill.UpgradeCostList[_level];
                var afford    = cost.DoIAfford();
                var costLabel = string.Format(afford ? "{0}" : "[FF1010]{0}[-]", cost.GetCurrencyLabelWithIcon());
                AlertDialog.Load("确认用" + costLabel + "升级这个技能吗", "不了", null, "升级",
                                 () =>
                {
                    if (afford)
                    {
                        Requester.Instance.Send(new UpgradeSkill(_skill.SkillCode));
                    }
                    else
                    {
                        if (cost.Type == (int)CurrencyType.Coin)
                        {
                            MorlnFloatingToast.Create("您的金币不足了");
                        }
                        else if (cost.Type == (int)CurrencyType.Diamond)
                        {
                            MorlnFloatingToast.Create("您的钻石不足了");
                        }
                        else
                        {
                            MorlnFloatingToast.Create("您的货币不足了");
                        }
                    }
                });
                //Requester.Instance.Send(new UpgradeSkill(_skill.SkillCode));
            }
            else
            {
                MorlnFloatingToast.Create("你的玩家等级需要达到" + _skill.UnlockLevelList[_level] + "级");
            }
        }
Example #24
0
        public void Execute()
        {
            UMengPlugin.UMengEvent(Win ? EventId.MULTI_WIN : EventId.MULTI_LOSE, null);

            //更新两人的玩家数据
            CommonData.MyUser    = MyInfo;
            CommonData.RivalUser = RivalInfo;

            //记录这一局是不是赢了
            CommonData.IsLastRoundWin = Win;

            MainController.Instance.Execute(this);

            if (GameManager.Instance)
            {
                GameManager.Instance.Execute(this);
            }
        }
Example #25
0
        private void OnDetailClick()
        {
            UMengPlugin.UMengEvent(EventId.SKILL_DETAIL,
                                   new Dictionary <string, object> {
                { "code", _skill.SkillCode }, { "level", _level }
            });

            //这个复杂了,每个技能的介绍还不一样
            var skillLevelDetailTextConfig = ConfigManager.GetConfig(ConfigManager.ConfigType.SkillLevelDetailTextConfig) as SkillLevelDetailTextConfig;

            if (skillLevelDetailTextConfig != null)
            {
                string textToShow;
                var    skillLevelDetail = skillLevelDetailTextConfig.DetailList.Find(x => x.SkillCode == _skill.SkillCode);
                if (skillLevelDetail == null)
                {
                    return;
                }
                if (_level - 1 >= skillLevelDetail.LevelDetailList.Count)
                {
                    return;                                                      //配置长度不够,不管了
                }
                if (_level == 0)
                {
                    var textNextLevel = skillLevelDetail.LevelDetailList[_level];
                    textToShow = string.Format("1级\n{0}", textNextLevel);
                }
                else
                {
                    var textCurLevel = skillLevelDetail.LevelDetailList[_level - 1];
                    if (_level < skillLevelDetail.LevelDetailList.Count)
                    {
                        var textNextLevel = skillLevelDetail.LevelDetailList[_level];
                        textToShow = string.Format("{0}级\n{1}\n\n下一级\n{2}", _level, textCurLevel, textNextLevel);
                    }
                    else
                    {
                        textToShow = string.Format("{0}级\n{1}\n\n已经顶级", _level, textCurLevel);
                    }
                }
                MorlnTooltip.Show(textToShow, SprSkillIcon.transform.position);
            }
        }
Example #26
0
        void OnClick()
        {
            UMengPlugin.UMengEvent(EventId.EQUIP_INTRO, new Dictionary <string, object> {
                { "code", _equip.EquipCode }
            });                                                                                                      //发送统计事件

            if (_equip == null)
            {
                return;
            }
            var equipIntroTextConfig =
                ConfigManager.GetConfig(ConfigManager.ConfigType.EquipIntroTextConfig) as EquipIntroTextConfig;

            if (equipIntroTextConfig != null)
            {
                var equipIntro = equipIntroTextConfig.IntroList.Find(x => x.EquipCode == _equip.EquipCode);
                var text       = equipIntro.IntroContent + (_worn ? "\n[FFFF00]双击脱下[-]" : "\n[FFFF00]双击穿上[-]");
                MorlnTooltip.Show(text, MainRoot.InverseTransformPoint(transform.position));
            }
        }
Example #27
0
        void OnClick()
        {
            UMengPlugin.UMengEvent(EventId.PUSHLEVEL_CLICK_POINT,
                                   new Dictionary <string, object> {
                { "major", _majorId }, { "level", _subLevelData.SubLevelId }
            });

            if (_subLevelUnlockInfo == null || !_subLevelUnlockInfo.Unlocked)
            {
                MorlnFloatingToast.Create("尚未解锁");
                return;
            }
            GameData.LastChallengeMajorLevelID = _subLevelUnlockInfo.MajorLevelId;//记录点击了哪一个小关,用于从MatchUI返回到PushLevelUI
            GameData.LastChallengeSubLevelID   = _subLevelUnlockInfo.SubLevelId;
            GameData.Reinforce1         = null;
            GameData.Reinforce1Portrait = null;
            GameData.Reinforce2         = null;
            GameData.Reinforce2Portrait = null;
            Requester.Instance.Send(new RequestChallenge(_subLevelUnlockInfo.MajorLevelId, _subLevelUnlockInfo.SubLevelId));
        }
Example #28
0
        public void OnAdventureClick()
        {
            UMengPlugin.UMengEvent(EventId.HOME_ADVENTURE, null);

            StartCoroutine(_GotoPushLevel());
        }
Example #29
0
        IEnumerator GuideCoroutine()
        {
            transform.localPosition = new Vector3(0, 0, -500);
            gameObject.layer        = 8;
            var boxCollider = GetComponent <BoxCollider>();

            if (!boxCollider)
            {
                boxCollider = gameObject.AddComponent <BoxCollider>();
            }
            boxCollider.size      = new Vector3(2000, 2000, 0);
            boxCollider.center    = Vector3.zero;
            boxCollider.isTrigger = true;

            //选择昵称
            boxCollider.enabled = false;
            SelectNicknamePanel.Load();
            while (!SelectNicknamePanel.NicknameSelectOk)
            {
                yield return(new WaitForEndOfFrame());
            }

            UMengPlugin.UMengEvent(EventId.NICKNAME_FINISH,
                                   new Dictionary <string, object>
            {
                { "random_times", SelectNicknamePanel.RandomTimes }
            });

            MusicManager.Instance.CrossFadeOut();

            //加载GameUI
            MainRoot.Goto(MainRoot.UIStateName.Game);
            while (!GameManager.Instance)
            {
                yield return(new WaitForEndOfFrame());
            }
            SelectNicknamePanel.UnloadInterface();//此时才能销毁SelectNicknamePanel,不然会突变
            GameUI.Instance.gameObject.SetActive(false);

            #region 故事板

            _next = false;

            var mangaPrefab = MorlnResources.Load("UI/FreshmanGuide/Prefabs/Manga") as GameObject;
            var manga       = PrefabHelper.InstantiateAndReset(mangaPrefab, transform);
            manga.transform.SetSortingLayer("Foreground");
            manga.GetComponentInChildren <Animator>().enabled = true;
            Destroy(manga, 24f);
            yield return(new WaitForSeconds(22.5f));

            _next = true;
            //while (!_next) yield return new WaitForEndOfFrame();

            #endregion

            UMengPlugin.UMengEvent(EventId.GUIDE_PROGRESS,
                                   new Dictionary <string, object>
            {
                { "state", "故事板完" }
            });

            GameUI.Instance.gameObject.SetActive(true);

            #region  消教学

            _next = false;
            boxCollider.enabled = false;

            GameData.RivalBossData = new DefenseData("鸡妈妈", 1, 90005, 100, 100);

            GameManager.Instance.ClearDefenserSetAIAndCameraAndTimeScale();

            var grid = GameManager.Instance.MyGrid;

            grid.ResetCells(5, 5, null);
            GameData.InitVegetableTypeCount = 4;
            //填入预设的蔬菜
            const string text = @"0 1 0 3 4
4 3 2 1 0
0 2 4 2 1
3 1 0 4 3
0 1 4 3 2";
            grid.CreateCandysAsPreset(text);

            GameManager.Instance.ResetAndRefreshAndStartFreshmanGuideRound();

            #region 母子对话

            yield return(new WaitForSeconds(1.5f));

            var lines        = new[] { new Line(false, "慢着,老娘我先陪你练练", 2.5f), new Line(true, "妈,我怕伤着你", 1.1f), new Line(false, "少废话,接招", 2f) };
            var bubblePrefab = MorlnResources.Load <GameObject>("UI/FreshmanGuide/Prefabs/Bubble");
            var bubbleGo     = PrefabHelper.InstantiateAndReset(bubblePrefab, transform);
            var bubbleSpr    = bubbleGo.GetComponentInChildren <UISprite>();
            var talkLabel    = bubbleGo.GetComponentInChildren <UILabel>();
            foreach (var line in lines)
            {
                bubbleSpr.transform.localScale = new Vector3(line.Left ? -1 : 1, 1, 1);
                talkLabel.text = line.Text;
                yield return(new WaitForSeconds(line.Length));
            }
            Destroy(bubbleGo);

            #endregion

            UMengPlugin.UMengEvent(EventId.GUIDE_PROGRESS,
                                   new Dictionary <string, object>
            {
                { "state", "母子对话完" }
            });

            //开始遮罩教学
            var        prefab = MorlnResources.Load <GameObject>("UI/FreshmanGuide/Prefabs/GuideMask-Sanxiao");
            GameObject go     = null;
            if (prefab)
            {
                go = PrefabHelper.InstantiateAndReset(prefab, MainRoot.Instance.transform);
            }
            else
            {
                Debug.LogError("不能没有这个Prefab!");
            }

            while (!_next)
            {
                //监测是否完成操作,完成则_next = true;
                if (GameData.MyEnergy > 0)
                {
                    _next = true;
                }
                yield return(new WaitForEndOfFrame());
            }
            Destroy(go);
            #endregion

            UMengPlugin.UMengEvent(EventId.GUIDE_PROGRESS,
                                   new Dictionary <string, object>
            {
                { "state", "三消教学完" }
            });

            #region 蓄力值

            _next = false;
            boxCollider.enabled = true;

            prefab = MorlnResources.Load <GameObject>("UI/FreshmanGuide/Prefabs/GuideMask-Energy");
            go     = null;
            if (prefab)
            {
                go = PrefabHelper.InstantiateAndReset(prefab, MainRoot.Instance.transform);
            }
            else
            {
                Debug.LogError("不能没有这个Prefab!");
            }

            while (!_next)
            {
                yield return(new WaitForEndOfFrame());
            }
            Destroy(go);

            #endregion

            UMengPlugin.UMengEvent(EventId.GUIDE_PROGRESS,
                                   new Dictionary <string, object>
            {
                { "state", "教蓄力值完" }
            });

            #region 使用技能

            while (true)
            {
                if (GameData.MyEnergy >= GameData.MyEnergyCapacity)
                {
                    break;
                }
                yield return(new WaitForEndOfFrame());
            }

            _next = false;
            boxCollider.enabled = false;

            prefab = MorlnResources.Load <GameObject>("UI/FreshmanGuide/Prefabs/GuideMask-UseSkill");
            go     = null;
            if (prefab)
            {
                go = PrefabHelper.InstantiateAndReset(prefab, MainRoot.Instance.transform);
            }
            else
            {
                Debug.LogError("不能没有这个Prefab!");
            }

            while (!_next)
            {
                if (GameData.MyEnergy < 120)
                {
                    _next = true;                         //证明使用过技能了
                }
                yield return(new WaitForEndOfFrame());
            }
            Destroy(go);

            #endregion

            UMengPlugin.UMengEvent(EventId.GUIDE_PROGRESS,
                                   new Dictionary <string, object>
            {
                { "state", "使用技能完" }
            });

            #region  成了伤害
            while (true)
            {
                if (GameData.RivalHealthList[1] <= 0)
                {
                    break;
                }
                yield return(new WaitForEndOfFrame());
            }

            _next = false;

            yield return(new WaitForSeconds(2));

            boxCollider.enabled = true;

            prefab = MorlnResources.Load <GameObject>("UI/FreshmanGuide/Prefabs/GuideMask-Damage");
            go     = null;
            if (prefab)
            {
                go = PrefabHelper.InstantiateAndReset(prefab, MainRoot.Instance.transform);
            }
            else
            {
                Debug.LogError("不能没有这个Prefab!");
            }

            while (!_next)
            {
                yield return(new WaitForEndOfFrame());
            }
            Destroy(go);

            #endregion

            UMengPlugin.UMengEvent(EventId.GUIDE_PROGRESS,
                                   new Dictionary <string, object>
            {
                { "state", "对战完" }
            });

            #region 结局
            _next = false;
            boxCollider.enabled = false;

            while (true)
            {
                if (GameData.RivalHealthList[0] <= 0 || _next)
                {
                    break;
                }
                yield return(new WaitForEndOfFrame());
            }

            yield return(new WaitForSeconds(2));

            GameData.LastRoundWin = true;

            MainRoot.Goto(MainRoot.UIStateName.EndRound);
            while (!EndRoundUI.Instance)
            {
                yield return(new WaitForEndOfFrame());
            }
            EndRoundUI.Instance.PlayEndRoundProcess_FreshmanGuide(3,
                                                                  new List <Currency>
            {
                new Currency((int)CurrencyType.Coin,
                             CommonData.MyUser.Money10),
                new Currency((int)CurrencyType.Diamond,
                             CommonData.MyUser.Money1)
            }, null);

            prefab = MorlnResources.Load <GameObject>("UI/FreshmanGuide/Prefabs/GuideMask-KillFellow");
            go     = null;
            if (prefab)
            {
                go = PrefabHelper.InstantiateAndReset(prefab, MainRoot.Instance.transform);
            }
            else
            {
                Debug.LogError("不能没有这个Prefab!");
            }

            while (!_next)
            {
                yield return(new WaitForEndOfFrame());
            }
            Destroy(go);

            #endregion

            UMengPlugin.UMengEvent(EventId.GUIDE_PROGRESS,
                                   new Dictionary <string, object>
            {
                { "state", "引导完" }
            });
        }
Example #30
0
 public void OnLeaderboardClick()
 {
     LeaderboardPanel.Load();
     UMengPlugin.UMengEvent(EventId.HOME_RANK, null);
 }