Exemplo n.º 1
0
    public bool AddEffect(NewbieGuideWeakConf conf, NewbieWeakGuideControl inControl, out GameObject highligter)
    {
        highligter = null;
        switch (conf.dwType)
        {
        case 1u:
        {
            GameObject x;
            highligter = (x = this.ShowPvPEffect(conf, inControl));
            return(!(x == null));
        }

        case 2u:
        {
            GameObject x;
            highligter = (x = this.ShowPvEEffect(conf, inControl));
            return(!(x == null));
        }

        case 3u:
        {
            GameObject x;
            highligter = (x = this.ShowFullHeroPanelEffect(conf, inControl));
            return(!(x == null));
        }

        case 4u:
        {
            GameObject x;
            highligter = (x = this.ShowHeroSelConfirmEffect(conf, inControl));
            return(!(x == null));
        }

        case 5u:
        {
            GameObject x;
            highligter = (x = this.ShowHumanMatch33Effect(conf, inControl));
            return(!(x == null));
        }

        case 6u:
        {
            GameObject x;
            highligter = (x = this.ShowBattleHeroSelEffect(conf, inControl));
            return(!(x == null));
        }

        case 7u:
        {
            GameObject x;
            highligter = (x = this.ShowClickPVPBtnEffect(conf, inControl));
            return(!(x == null));
        }

        case 8u:
        {
            GameObject x;
            highligter = (x = this.ShowClickMatch55(conf, inControl));
            return(!(x == null));
        }

        case 9u:
        {
            GameObject x;
            highligter = (x = this.ShowClickStartMatch55(conf, inControl));
            return(!(x == null));
        }

        case 10u:
        {
            GameObject x;
            highligter = (x = this.ShowClickWinShare(conf, inControl));
            return(!(x == null));
        }

        case 11u:
        {
            if (conf.Param[0] == 0u || conf.Param[1] == 0u)
            {
                DebugHelper.Assert(false, "newbieguide Invalide config -- {0}", new object[]
                    {
                        conf.dwType
                    });
                return(false);
            }
            int  num      = Random.Range(0, 2);
            uint nextStep = conf.Param[num];
            inControl.Complete(conf.dwID, nextStep);
            return(true);
        }

        case 12u:
        {
            GameObject x;
            highligter = (x = this.ShowClickRankBtn(conf, inControl));
            return(!(x == null));
        }

        case 13u:
        {
            GameObject x;
            highligter = (x = this.ShowClickTrainBtn(conf, inControl));
            return(!(x == null));
        }

        case 14u:
        {
            GameObject x;
            highligter = (x = this.ShowClickTrainWheelDisc(conf, inControl));
            return(!(x == null));
        }

        case 15u:
        {
            GameObject x;
            highligter = (x = this.ShowClickMatch55Melee(conf, inControl));
            return(!(x == null));
        }

        case 16u:
        {
            GameObject x;
            highligter = (x = this.ShowClickMatchingConfirmBoxConfirm(conf, inControl));
            return(!(x == null));
        }

        case 17u:
        {
            GameObject x;
            highligter = (x = this.ShowClickVictoryTipsBtn(conf, inControl));
            return(!(x == null));
        }

        case 18u:
        {
            GameObject x;
            highligter = (x = this.ShowClickSaveReplayKit(conf, inControl));
            return(!(x == null));
        }

        case 21u:
        {
            GameObject x;
            highligter = (x = this.ShowClickSymbolDraw(conf, inControl));
            return(!(x == null));
        }

        case 22u:
        {
            GameObject x;
            highligter = (x = this.ShowClickCommomEquip(conf, inControl));
            return(!(x == null));
        }

        case 23u:
            this.ShowBubbleTipText(conf, inControl);
            return(true);

        case 24u:
        {
            GameObject x;
            highligter = (x = this.ShowBackHomeTip(conf, inControl));
            return(!(x == null));
        }
        }
        DebugHelper.Assert(false, "Invalide NewbieGuideWeakGuideType -- {0}", new object[]
        {
            conf.dwType
        });
        return(false);
    }
Exemplo n.º 2
0
    public bool AddEffect(NewbieGuideWeakConf conf, NewbieWeakGuideControl inControl, out GameObject highligter)
    {
        GameObject obj2;

        highligter = null;
        switch (conf.dwType)
        {
        case 1:
            highligter = obj2 = this.ShowPvPEffect(conf, inControl);
            return(obj2 != null);

        case 2:
            highligter = obj2 = this.ShowPvEEffect(conf, inControl);
            return(obj2 != null);

        case 3:
            highligter = obj2 = this.ShowFullHeroPanelEffect(conf, inControl);
            return(obj2 != null);

        case 4:
            highligter = obj2 = this.ShowHeroSelConfirmEffect(conf, inControl);
            return(obj2 != null);

        case 5:
            highligter = obj2 = this.ShowHumanMatch33Effect(conf, inControl);
            return(obj2 != null);

        case 6:
            highligter = obj2 = this.ShowBattleHeroSelEffect(conf, inControl);
            return(obj2 != null);

        case 7:
            highligter = obj2 = this.ShowClickPVPBtnEffect(conf, inControl);
            return(obj2 != null);

        case 8:
            highligter = obj2 = this.ShowClickMatch55(conf, inControl);
            return(obj2 != null);

        case 9:
            highligter = obj2 = this.ShowClickStartMatch55(conf, inControl);
            return(obj2 != null);

        case 10:
            highligter = obj2 = this.ShowClickWinShare(conf, inControl);
            return(obj2 != null);

        case 11:
        {
            if ((conf.Param[0] != 0) && (conf.Param[1] != 0))
            {
                int  index    = UnityEngine.Random.Range(0, 2);
                uint nextStep = conf.Param[index];
                inControl.Complete(conf.dwID, nextStep);
                return(true);
            }
            object[] objArray1 = new object[] { conf.dwType };
            DebugHelper.Assert(false, "newbieguide Invalide config -- {0}", objArray1);
            return(false);
        }

        case 12:
            highligter = obj2 = this.ShowClickRankBtn(conf, inControl);
            return(obj2 != null);

        case 13:
            highligter = obj2 = this.ShowClickTrainBtn(conf, inControl);
            return(obj2 != null);

        case 14:
            highligter = obj2 = this.ShowClickTrainWheelDisc(conf, inControl);
            return(obj2 != null);

        case 15:
            highligter = obj2 = this.ShowClickMatch55Melee(conf, inControl);
            return(obj2 != null);

        case 0x10:
            highligter = obj2 = this.ShowClickMatchingConfirmBoxConfirm(conf, inControl);
            return(obj2 != null);

        case 0x11:
            highligter = obj2 = this.ShowClickVictoryTipsBtn(conf, inControl);
            return(obj2 != null);

        case 0x12:
            highligter = obj2 = this.ShowClickSaveReplayKit(conf, inControl);
            return(obj2 != null);
        }
        object[] inParameters = new object[] { conf.dwType };
        DebugHelper.Assert(false, "Invalide NewbieGuideWeakGuideType -- {0}", inParameters);
        return(false);
    }