Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ void Start()
for (int i = 0; i < tmpText6.GetCharCount(); i++)
{
tmpText6.PunchCharScale(i, Vector3.one * 0.7f, 0.7f)
.SetFreqnency(5)
.SetFrequency(5)
.SetDelay(i * 0.05f)
.SetEase(Ease.OutSine);
}

for (int i = 0; i < tmpText7.GetCharCount(); i++)
{
tmpText7.ShakeCharOffset(i, Random.insideUnitSphere * 30f, 3f)
.SetFreqnency(1)
.SetFrequency(1)
.SetDampingRatio(1f)
.SetEase(Ease.OutSine);
}
Expand Down
2 changes: 1 addition & 1 deletion MagicTween.Samples/Assets/Samples/6_Punch/PunchSample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ void Start()
// You can set the frequency using SetFrequency(). Default value is 10.
target2.PunchPositionY(-4f, 1.5f)
.SetEase(Ease.OutSine)
.SetFreqnency(20);
.SetFrequency(20);

// You can also set the vibration damping ratio using SetDampingRatio(). Default value is 1f.
target3.PunchPositionY(4f, 1.5f)
Expand Down
2 changes: 1 addition & 1 deletion MagicTween.Samples/Assets/Samples/7_Shake/ShakeSample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void Start()
// You can set the frequency using SetFrequency(). Default value is 10.
target2.ShakePositionY(-4f, 1.5f)
.SetEase(Ease.OutSine)
.SetFreqnency(20);
.SetFrequency(20);

// You can also set the vibration damping ratio using SetDampingRatio(). Default value is 1f.
target3.ShakePositionY(4f, 1.5f)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public static Tween<float3, PathTweenOptions> SetClosed(this Tween<float3, PathT
return self;
}

public static Tween<TValue, PunchTweenOptions> SetFreqnency<TValue>(this Tween<TValue, PunchTweenOptions> self, int frequency)
public static Tween<TValue, PunchTweenOptions> SetFrequency<TValue>(this Tween<TValue, PunchTweenOptions> self, int frequency)
where TValue : unmanaged
{
AssertTween.IsActive(self);
Expand Down Expand Up @@ -273,7 +273,7 @@ public static Tween<TValue, PunchTweenOptions> SetDampingRatio<TValue>(this Twee
return self;
}

public static Tween<TValue, ShakeTweenOptions> SetFreqnency<TValue>(this Tween<TValue, ShakeTweenOptions> self, int frequency)
public static Tween<TValue, ShakeTweenOptions> SetFrequency<TValue>(this Tween<TValue, ShakeTweenOptions> self, int frequency)
where TValue : unmanaged
{
AssertTween.IsActive(self);
Expand Down