Пример #1
0
        public static void CheckSkillTable()
        {
            StringBuilder sb   = new StringBuilder();
            List <uint>   list = new List <uint>();
            Dictionary <uint, SkillData> skillDatas = SkillData.GetSkillDatas();

            foreach (var kvp in skillDatas)
            {
                SkillData     skillData     = kvp.Value;
                AnimationData animationData = AnimationData.GetAnimationDataById(kvp.Key);
                if (skillData.timeline.Count > 0)
                {
                    if (skillData.timeline.Last().Key > animationData.length)
                    {
                        list.Add(kvp.Key);
                    }
                }
            }

            if (list.Count > 0)
            {
                sb.AppendLine("技能效果时间超过技能长度:");
                for (int i = 0, count = list.Count; i < count; i++)
                {
                    sb.AppendLine(list[i].ToString());
                }
            }
            else
            {
                sb.AppendLine("无");
            }
            Debugger.Log(sb.ToString());
        }