public static Tween TweenGravityScale(this Rigidbody2D rigidbody, float to, float duration) =>
 Tweening.To(getter: () => rigidbody.gravityScale,
             setter: gravityScale => rigidbody.gravityScale = gravityScale,
             to, duration).SetTarget(rigidbody);
 public static Tween TweenShadowStrength(this Light light, float to, float duration) =>
 Tweening.To(getter: () => light.shadowStrength,
             setter: shadowStrength => light.shadowStrength = shadowStrength,
             to, duration).SetTarget(light);
 public static Tween TweenShadowNearPlane(this Light light, float to, float duration) =>
 Tweening.To(getter: () => light.shadowNearPlane,
             setter: shadowNearPlane => light.shadowNearPlane = shadowNearPlane,
             to, duration).SetTarget(light);
Esempio n. 4
0
 public static Tween TweenAnchor(this TargetJoint2D joint, Vector2 to, float duration) =>
 Tweening.To(getter: () => joint.anchor,
             setter: anchor => joint.anchor = anchor,
             to, duration).SetTarget(joint);
 public static Tween TweenBounceIntensity(this Light light, float to, float duration) =>
 Tweening.To(getter: () => light.bounceIntensity,
             setter: bounceIntensity => light.bounceIntensity = bounceIntensity,
             to, duration).SetTarget(light);
Esempio n. 6
0
 public static Tween TweenTarget(this TargetJoint2D joint, Vector2 to, float duration) =>
 Tweening.To(getter: () => joint.target,
             setter: target => joint.target = target,
             to, duration).SetTarget(joint);
Esempio n. 7
0
 public static Tween TweenDampingRatio(this TargetJoint2D joint, float to, float duration) =>
 Tweening.To(getter: () => joint.dampingRatio,
             setter: dampingRatio => joint.dampingRatio = dampingRatio,
             to, duration).SetTarget(joint);
Esempio n. 8
0
 public static Tween TweenLineSpacing(this TextMesh textMesh, float to, float duration) =>
 Tweening.To(getter: () => textMesh.lineSpacing,
             setter: lineSpacing => textMesh.lineSpacing = lineSpacing,
             to, duration).SetTarget(textMesh);
Esempio n. 9
0
 public static Tween TweenTabSize(this TextMesh textMesh, float to, float duration) =>
 Tweening.To(getter: () => textMesh.tabSize,
             setter: tabSize => textMesh.tabSize = tabSize,
             to, duration).SetTarget(textMesh);
Esempio n. 10
0
 public static Tween TweenOffsetZ(this TextMesh textMesh, float to, float duration) =>
 Tweening.To(getter: () => textMesh.offsetZ,
             setter: offsetZ => textMesh.offsetZ = offsetZ,
             to, duration).SetTarget(textMesh);
Esempio n. 11
0
 public static Tween TweenCharacterSize(this TextMesh textMesh, float to, float duration) =>
 Tweening.To(getter: () => textMesh.characterSize,
             setter: characterSize => textMesh.characterSize = characterSize,
             to, duration).SetTarget(textMesh);
Esempio n. 12
0
 public static Tween TweenFontSize(this TextMesh textMesh, int to, float duration) =>
 Tweening.To(getter: () => textMesh.fontSize,
             setter: fontSize => textMesh.fontSize = fontSize,
             to, duration).SetTarget(textMesh);
Esempio n. 13
0
 public static Tween TweenAlpha(this TextMesh textMesh, float to, float duration) =>
 Tweening.To(getter: () => textMesh.color.a,
             setter: alpha => textMesh.color = new Color(textMesh.color.r, textMesh.color.g, textMesh.color.b, alpha),
             to, duration).SetTarget(textMesh);
 public static Tween TweenPosition(this Rigidbody2D rigidbody, Vector2 to, float duration) =>
 Tweening.To(getter: () => rigidbody.position,
             setter: position => rigidbody.position = position,
             to, duration).SetTarget(rigidbody);
Esempio n. 15
0
 public static Tween TweenShadowBias(this LineRenderer renderer, float to, float duration) =>
 Tweening.To(getter: () => renderer.shadowBias,
             setter: shadowBias => renderer.shadowBias = shadowBias,
             to, duration).SetTarget(renderer);
Esempio n. 16
0
 public static Tween TweenColor(this TextMesh textMesh, Color to, float duration) =>
 Tweening.To(getter: () => textMesh.color,
             setter: color => textMesh.color = color,
             to, duration).SetTarget(textMesh);
Esempio n. 17
0
 public static Tween TweenStartColor(this LineRenderer renderer, Color to, float duration) =>
 Tweening.To(getter: () => renderer.startColor,
             setter: startColor => renderer.startColor = startColor,
             to, duration).SetTarget(renderer);
 public static Tween TweenRate(this AudioChorusFilter filter, float to, float duration) =>
 Tweening.To(getter: () => filter.rate,
             setter: rate => filter.rate = rate,
             to, duration).SetTarget(filter);
Esempio n. 19
0
 public static Tween TweenMaxForce(this TargetJoint2D joint, float to, float duration) =>
 Tweening.To(getter: () => joint.maxForce,
             setter: maxForce => joint.maxForce = maxForce,
             to, duration).SetTarget(joint);
 public static Tween TweenDryMix(this AudioChorusFilter filter, float to, float duration) =>
 Tweening.To(getter: () => filter.dryMix,
             setter: dryMix => filter.dryMix = dryMix,
             to, duration).SetTarget(filter);
Esempio n. 21
0
 public static Tween TweenFrequency(this TargetJoint2D joint, float to, float duration) =>
 Tweening.To(getter: () => joint.frequency,
             setter: frequency => joint.frequency = frequency,
             to, duration).SetTarget(joint);
 public static Tween TweenWetMix3(this AudioChorusFilter filter, float to, float duration) =>
 Tweening.To(getter: () => filter.wetMix3,
             setter: wetMix3 => filter.wetMix3 = wetMix3,
             to, duration).SetTarget(filter);
 public static Tween TweenColorTemperature(this Light light, float to, float duration) =>
 Tweening.To(getter: () => light.colorTemperature,
             setter: colorTemperature => light.colorTemperature = colorTemperature,
             to, duration).SetTarget(light);
 public static Tween TweenDelay(this AudioChorusFilter filter, float to, float duration) =>
 Tweening.To(getter: () => filter.delay,
             setter: delay => filter.delay = delay,
             to, duration).SetTarget(filter);
 public static Tween TweenRange(this Light light, float to, float duration) =>
 Tweening.To(getter: () => light.range,
             setter: range => light.range = range,
             to, duration).SetTarget(light);
Esempio n. 26
0
 public static Tween TweenEndWidth(this LineRenderer renderer, float to, float duration) =>
 Tweening.To(getter: () => renderer.endWidth,
             setter: endWidth => renderer.endWidth = endWidth,
             to, duration).SetTarget(renderer);
 public static Tween TweenShadowNormalBias(this Light light, float to, float duration) =>
 Tweening.To(getter: () => light.shadowNormalBias,
             setter: shadowNormalBias => light.shadowNormalBias = shadowNormalBias,
             to, duration).SetTarget(light);
Esempio n. 28
0
 public static Tween TweenWidthMultiplier(this LineRenderer renderer, float to, float duration) =>
 Tweening.To(getter: () => renderer.widthMultiplier,
             setter: widthMultiplier => renderer.widthMultiplier = widthMultiplier,
             to, duration).SetTarget(renderer);
 public static Tween TweenSpotAngle(this Light light, float to, float duration) =>
 Tweening.To(getter: () => light.spotAngle,
             setter: spotAngle => light.spotAngle = spotAngle,
             to, duration).SetTarget(light);
 public static Tween TweenInertia(this Rigidbody2D rigidbody, float to, float duration) =>
 Tweening.To(getter: () => rigidbody.inertia,
             setter: inertia => rigidbody.inertia = inertia,
             to, duration).SetTarget(rigidbody);