예제 #1
0
        public ComboMotionCreater(int comboMax, ValueItem[] motionTriggerParam, ValueItem[] motionTransParam, Action onMotionCompletion = default)
        {
            ComboMotionMax = comboMax;

            MotionTransParam   = motionTransParam;
            MotionTriggerParam = motionTriggerParam;

            AniUpdater          = new AnimationInfoUpdater();
            mValueItemForRevert = ValueItem.New(string.Empty);
        }
예제 #2
0
        public AnimationInfoUpdater GetMotion(int id, ref Animator animator)
        {
            AnimationInfoUpdater result    = default;
            MotionSceneInfo      sceneInfo = GetValue(id);

            if (sceneInfo != default)
            {
                if (!sceneInfo.isCombo)
                {
                    result = sceneInfo.Motion;
                    result.Start(animator, sceneInfo.MotionSkillInfo.GetInfos());
                }
            }
            return(result);
        }
예제 #3
0
 private void CreateCombo(ref Animator animator, bool isFirstCreate)
 {
     if (!isFirstCreate)
     {
         AniUpdater.Dispose();
         AniUpdater = new AnimationInfoUpdater();
     }
     if (MotionTransParam.Length == 0)
     {
         AniUpdater.Start(animator);
     }
     else
     {
         mValueItem = MotionTransParam[CurrentCombo];
         AniUpdater.Start(animator, mValueItem);
         CurrentCombo++;
     }
 }