예제 #1
0
        public static ConfigAnimatorEventPattern[] GetConfigs()
        {
            List <ConfigAnimatorEventPattern> list = new List <ConfigAnimatorEventPattern>();

            string[] animatorEventPatternPathes = GlobalDataManager.metaConfig.animatorEventPatternPathes;
            for (int i = 0; i < animatorEventPatternPathes.Length; i++)
            {
                ConfigAnimatorEventPattern item = ConfigUtil.LoadConfig <ConfigAnimatorEventPattern>(animatorEventPatternPathes[i]);
                list.Add(item);
            }
            return(list.ToArray());
        }
예제 #2
0
 public static void ReloadFromFile()
 {
     _animatorEventPatternDict = new Dictionary <string, AnimatorEventPattern>();
     string[] animatorEventPatternPathes = GlobalDataManager.metaConfig.animatorEventPatternPathes;
     for (int i = 0; i < animatorEventPatternPathes.Length; i++)
     {
         ConfigAnimatorEventPattern pattern = ConfigUtil.LoadConfig <ConfigAnimatorEventPattern>(animatorEventPatternPathes[i]);
         if (pattern.patterns != null)
         {
             for (int j = 0; j < pattern.patterns.Length; j++)
             {
                 AnimatorEventPattern pattern2 = pattern.patterns[j];
                 _animatorEventPatternDict.Add(pattern2.name, pattern2);
             }
         }
     }
 }