Skip to content

Commit

Permalink
Merge pull request #8 from techno-dwarf-works/feature/refactoring
Browse files Browse the repository at this point in the history
Version 0.0.7
  • Loading branch information
uurha committed Oct 14, 2024
1 parent 9b85e41 commit e119d4f
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 89 deletions.
44 changes: 0 additions & 44 deletions Runtime/Extensions/Components/LightExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,28 +206,6 @@ public static IEnumerable<RangeLightTween> TweensRange(this IEnumerable<Light> s
return tweens;
}

public static ShadowAngleLightTween TweenShadowAngle(this Light self, float duration, float options, OptionsMode optionsMode = default)
{
return self.Tween<ShadowAngleLightTween, Light, float>(duration, options, optionsMode);
}

public static IEnumerable<ShadowAngleLightTween> TweensShadowAngle(this IEnumerable<Light> self, float duration, float options, OptionsMode optionsMode = default)
{
if (!ValidationUtility.ValidateNullReference(self))
{
return Array.Empty<ShadowAngleLightTween>();
}

var tweens = new List<ShadowAngleLightTween>();
foreach (var target in self)
{
var tween = target.TweenShadowAngle(duration, options, optionsMode);
tweens.Add(tween);
}

return tweens;
}

public static ShadowBiasLightTween TweenShadowBias(this Light self, float duration, float options, OptionsMode optionsMode = default)
{
return self.Tween<ShadowBiasLightTween, Light, float>(duration, options, optionsMode);
Expand Down Expand Up @@ -316,28 +294,6 @@ public static IEnumerable<ShadowNormalBiasLightTween> TweensShadowNormalBias(thi
return tweens;
}

public static ShadowRadiusLightTween TweenShadowRadius(this Light self, float duration, float options, OptionsMode optionsMode = default)
{
return self.Tween<ShadowRadiusLightTween, Light, float>(duration, options, optionsMode);
}

public static IEnumerable<ShadowRadiusLightTween> TweensShadowRadius(this IEnumerable<Light> self, float duration, float options, OptionsMode optionsMode = default)
{
if (!ValidationUtility.ValidateNullReference(self))
{
return Array.Empty<ShadowRadiusLightTween>();
}

var tweens = new List<ShadowRadiusLightTween>();
foreach (var target in self)
{
var tween = target.TweenShadowRadius(duration, options, optionsMode);
tweens.Add(tween);
}

return tweens;
}

public static ShadowStrengthLightTween TweenShadowStrength(this Light self, float duration, float options, OptionsMode optionsMode = default)
{
return self.Tween<ShadowStrengthLightTween, Light, float>(duration, options, optionsMode);
Expand Down
19 changes: 0 additions & 19 deletions Runtime/Implementations/Tweens/Light/ShadowAngleLightTween.cs

This file was deleted.

This file was deleted.

19 changes: 0 additions & 19 deletions Runtime/Implementations/Tweens/Light/ShadowRadiusLightTween.cs

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.tdw.better.tweens",
"displayName": "Better Tweens",
"version": "0.0.6",
"version": "0.0.7",
"unity": "2021.3",
"description": " ",
"dependencies": {
Expand Down

0 comments on commit e119d4f

Please sign in to comment.