private void RefreshParamItem(ref ValueItem conf, ref bool checkDampTime) { if (conf.IsBool) { AnimatorTarget.SetBool(conf.KeyField, conf.Bool); } else if (conf.IsFloat) { if (checkDampTime && conf.DampTime > 0f) { AnimatorTarget.SetFloat(conf.KeyField, conf.Float, conf.DampTime, DeltaTime); } else { AnimatorTarget.SetFloat(conf.KeyField, conf.Float); } } else if (conf.IsInt) { AnimatorTarget.SetInteger(conf.KeyField, conf.Int); } }
private void RefreshParamItem(ref ValueItem conf, ref bool checkDampTime) { if (conf.IsBool) { AnimatorTarget.SetBool(conf.KeyField, conf.Bool); } else if (conf.IsFloat) { if (checkDampTime && conf.DampTime > 0f) { AnimatorTarget.SetFloat(conf.KeyField, conf.Float, conf.DampTime, DeltaTime); } else { AnimatorTarget.SetFloat(conf.KeyField, conf.Float); Testers.Tester.Instance.Log(TesterRPG.Instance, TesterRPG.LOG, "log: ".Append(mConfItem.KeyField, " = ", mConfItem.Value)); } } else if (conf.IsInt) { AnimatorTarget.SetInteger(conf.KeyField, conf.Int); } }