Пример #1
0
 public static void SetThumbnailFrame(UISprite background, UISprite frame, int growStep)
 {
     if (MonsterGrowStepData.IsEggScope(growStep) || MonsterGrowStepData.IsChild1Scope(growStep) || MonsterGrowStepData.IsChild2Scope(growStep))
     {
         background.spriteName = "Common02_Thumbnail_bg1";
         frame.spriteName      = "Common02_Thumbnail_waku1";
     }
     else if (MonsterGrowStepData.IsGrowingScope(growStep))
     {
         background.spriteName = "Common02_Thumbnail_bg2";
         frame.spriteName      = "Common02_Thumbnail_waku2";
     }
     else if (MonsterGrowStepData.IsRipeScope(growStep))
     {
         background.spriteName = "Common02_Thumbnail_bg3";
         frame.spriteName      = "Common02_Thumbnail_waku3";
     }
     else if (MonsterGrowStepData.IsPerfectScope(growStep))
     {
         background.spriteName = "Common02_Thumbnail_bg4";
         frame.spriteName      = "Common02_Thumbnail_waku4";
     }
     else if (MonsterGrowStepData.IsUltimateScope(growStep))
     {
         background.spriteName = "Common02_Thumbnail_bg5";
         frame.spriteName      = "Common02_Thumbnail_waku5";
     }
     else
     {
         background.spriteName = "Common02_Thumbnail_Question";
         frame.spriteName      = "Common02_Thumbnail_wakuQ";
     }
 }
Пример #2
0
        public List <GameWebAPI.RespDataMA_GetMonsterEvolutionM.Evolution> GetAfterMonsterEvolutionList(string monsterId, string growStep)
        {
            List <GameWebAPI.RespDataMA_GetMonsterEvolutionM.Evolution> list = null;

            if (!this.monsterEvolutionDic.TryGetValue(monsterId, out list))
            {
                int growStep2 = (int)MonsterGrowStepData.ToGrowStep(growStep);
                list = new List <GameWebAPI.RespDataMA_GetMonsterEvolutionM.Evolution>();
                if (MonsterGrowStepData.IsEggScope(growStep2) || MonsterGrowStepData.IsChild1Scope(growStep2) || MonsterGrowStepData.IsChild2Scope(growStep2))
                {
                    this.GetAfterEvolutionChildList(monsterId, ref list);
                    this.monsterEvolutionDic.Add(monsterId, list);
                }
            }
            return(list);
        }
Пример #3
0
        public List <GameWebAPI.RespDataMA_GetMonsterEvolutionM.Evolution> GetBeforeMonsterEvolutionList(string monsterId, string growStep)
        {
            List <GameWebAPI.RespDataMA_GetMonsterEvolutionM.Evolution> list = null;

            if (!this.baseMonsterEvolutionTable.TryGetValue(monsterId, out list))
            {
                int growStep2 = (int)MonsterGrowStepData.ToGrowStep(growStep);
                list = new List <GameWebAPI.RespDataMA_GetMonsterEvolutionM.Evolution>();
                if (!MonsterGrowStepData.IsEggScope(growStep2))
                {
                    if (MonsterGrowStepData.IsChild1Scope(growStep2) || MonsterGrowStepData.IsChild2Scope(growStep2) || MonsterGrowStepData.IsGrowingScope(growStep2))
                    {
                        this.GetBeforeEvolutionChildList(monsterId, ref list);
                    }
                    else
                    {
                        this.GetBeforeEvolutionList(monsterId, ref list);
                    }
                }
                this.baseMonsterEvolutionTable.Add(monsterId, list);
            }
            return(list);
        }