private static void SetAnimatorParameterP1(Animator animator, FsmOutput output, FpAnimStatusComponent latestValue) { var index = latestValue.AnimatorParameterIndex[output.TargetHash]; var latestParam = latestValue.AnimatorParameters[index]; var isChange = SetAnimatorParameter(animator, output, latestParam); _animatorP1Changed = isChange || _animatorP1Changed; _animatorP1NeedUpdate |= (isChange && output.UpdateImmediate); }
private static void SetAnimatorParameterP1(Animator animator, FsmOutput output, FpAnimStatusComponent latestValue) { var index = latestValue.AnimatorParameterIndex[output.TargetHash]; var latestParam = latestValue.AnimatorParameters[index]; _animatorP1Changed = SetAnimatorParameter(animator, output, latestParam) || _animatorP1Changed; }
private static void SetAnimatorParameterP1(Animator animator, FsmOutput output, FpAnimStatusComponent latestValue) { if (!latestValue.AnimatorParameterIndex.ContainsKey(output.TargetHash)) { Logger.WarnFormat("animator param is not found:{0}!!!", output.Target); return; } var index = latestValue.AnimatorParameterIndex[output.TargetHash]; var latestParam = latestValue.AnimatorParameters[index]; var isChange = SetAnimatorParameter(animator, output, latestParam); _animatorP1Changed = isChange || _animatorP1Changed; _animatorP1NeedUpdate |= (isChange && output.UpdateImmediate); }