예제 #1
0
 private void StartAnimationGrowStepText()
 {
     if (MonsterGrowStepData.IsChild1Scope(this.growStep))
     {
         this.growAnimator.SetTrigger("Child_1");
     }
     else if (MonsterGrowStepData.IsChild2Scope(this.growStep))
     {
         this.growAnimator.SetTrigger("Child_2");
     }
     else if (MonsterGrowStepData.IsGrowingGroup(this.growStep))
     {
         this.growAnimator.SetTrigger("Growing");
     }
     else if (MonsterGrowStepData.IsRipeGroup(this.growStep))
     {
         this.growAnimator.SetTrigger("Ripe");
     }
     else if (MonsterGrowStepData.IsPerfectGroup(this.growStep))
     {
         this.growAnimator.SetTrigger("Perfect");
     }
     else if (MonsterGrowStepData.IsUltimateGroup(this.growStep))
     {
         this.growAnimator.SetTrigger("Ultimate");
     }
     else if (MonsterGrowStepData.IsArmorGroup(this.growStep))
     {
         this.growAnimator.SetTrigger("Armor");
     }
     else if (MonsterGrowStepData.IsHybridGroup(this.growStep))
     {
         this.growAnimator.SetTrigger("Hybrid");
     }
 }
예제 #2
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);
        }
예제 #3
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";
     }
 }
예제 #4
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);
        }