示例#1
0
 static UnitAnimEnum()
 {
     V_Animation.Init();
     FieldInfo[] fieldInfoArr = typeof(UnitAnimEnum).GetFields(BindingFlags.Static | BindingFlags.Public);
     foreach (FieldInfo fieldInfo in fieldInfoArr)
     {
         if (fieldInfo != null)
         {
             fieldInfo.SetValue(null, UnitAnim.GetUnitAnim(fieldInfo.Name));
         }
     }
 }
        public static void Init()
        {
            V_Animation.Init();
            ECS_UnitAnimType.Init();


            /*
             * string[] unitAnimTypeNameArray = new string[] {
             *  "dBareHands_Idle",
             *  "dBareHands_Walk",
             *  "dZombie_Idle",
             *  "dZombie_Walk",
             *  "dMarine_Idle",
             *  "dMarine_Walk",
             *  "dMarine_Aim",
             *  "dMarine_Attack",
             * };
             *
             * foreach (string unitAnimTypeName in unitAnimTypeNameArray) {
             *  TestUnitAnimTypeConstantFrameCount(UnitAnimType.GetUnitAnimType(unitAnimTypeName));
             * }*/
        }