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); }
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); }
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++; } }