TweenHelper

TweenHelper
This commit is contained in:
Alex-Rachel
2025-03-23 21:06:05 +08:00
parent 5cb72e0b08
commit 5cebc82ba1
2 changed files with 0 additions and 69 deletions

View File

@@ -290,18 +290,6 @@ namespace TEngine
public long UIFillAmount(UnityEngine.UI.Image target, Single startValue, Single endValue, float duration, Ease ease = Ease.Default, int cycles = 1,
CycleMode cycleMode = CycleMode.Restart, float startDelay = 0, float endDelay = 0, bool useUnscaledTime = false);
public long RotationAdditive(UnityEngine.Transform target, UnityEngine.Vector3 deltaValue, float duration, Ease ease = Ease.Default, int cycles = 1,
CycleMode cycleMode = CycleMode.Restart, float startDelay = 0, float endDelay = 0, bool useUnscaledTime = false);
public long LocalRotationAdditive(UnityEngine.Transform target, UnityEngine.Vector3 deltaValue, float duration, Ease ease = Ease.Default, int cycles = 1,
CycleMode cycleMode = CycleMode.Restart, float startDelay = 0, float endDelay = 0, bool useUnscaledTime = false);
public long RotationAdditive(UnityEngine.Transform target, UnityEngine.Quaternion deltaValue, float duration, Ease ease = Ease.Default, int cycles = 1,
CycleMode cycleMode = CycleMode.Restart, float startDelay = 0, float endDelay = 0, bool useUnscaledTime = false);
public long LocalRotationAdditive(UnityEngine.Transform target, UnityEngine.Quaternion deltaValue, float duration, Ease ease = Ease.Default,
int cycles = 1, CycleMode cycleMode = CycleMode.Restart, float startDelay = 0, float endDelay = 0, bool useUnscaledTime = false);
public long MoveBezierPath(UnityEngine.Transform target, UnityEngine.Vector3[] path, float duration, Ease ease = Ease.Default, int cycles = 1,
CycleMode cycleMode = CycleMode.Restart, float startDelay = 0, float endDelay = 0, bool useUnscaledTime = false);
@@ -309,10 +297,6 @@ namespace TEngine
Ease ease = Ease.Default, int cycles = 1, CycleMode cycleMode = CycleMode.Restart, float startDelay = 0, float endDelay = 0, bool useUnscaledTime = false)
where T : class;
public long Custom<T>(T target, uint startValue, uint endValue, float duration, Action<T, uint> onValueChange,
Ease ease = Ease.Default, int cycles = 1, CycleMode cycleMode = CycleMode.Restart, float startDelay = 0, float endDelay = 0, bool useUnscaledTime = false)
where T : class;
public long Custom<T>(T target, long startValue, long endValue, float duration, Action<T, long> onValueChange,
Ease ease = Ease.Default, int cycles = 1, CycleMode cycleMode = CycleMode.Restart, float startDelay = 0, float endDelay = 0, bool useUnscaledTime = false)
where T : class;

View File

@@ -779,48 +779,6 @@ namespace TEngine
return _tweenHelper.UIFillAmount(target, startValue, endValue, duration, ease, cycles, cycleMode, startDelay, endDelay, useUnscaledTime);
}
public static long RotationAdditive(UnityEngine.Transform target, UnityEngine.Vector3 deltaValue, float duration, Ease ease = Ease.Default, int cycles = 1,
CycleMode cycleMode = CycleMode.Restart, float startDelay = 0, float endDelay = 0, bool useUnscaledTime = false)
{
if (_tweenHelper == null)
{
throw new GameFrameworkException("ITweenHelper is invalid.");
}
return _tweenHelper.RotationAdditive(target, deltaValue, duration, ease, cycles, cycleMode, startDelay, endDelay, useUnscaledTime);
}
public static long LocalRotationAdditive(UnityEngine.Transform target, UnityEngine.Vector3 deltaValue, float duration, Ease ease = Ease.Default, int cycles = 1,
CycleMode cycleMode = CycleMode.Restart, float startDelay = 0, float endDelay = 0, bool useUnscaledTime = false)
{
if (_tweenHelper == null)
{
throw new GameFrameworkException("ITweenHelper is invalid.");
}
return _tweenHelper.LocalRotationAdditive(target, deltaValue, duration, ease, cycles, cycleMode, startDelay, endDelay, useUnscaledTime);
}
public static long RotationAdditive(UnityEngine.Transform target, UnityEngine.Quaternion deltaValue, float duration, Ease ease = Ease.Default, int cycles = 1,
CycleMode cycleMode = CycleMode.Restart, float startDelay = 0, float endDelay = 0, bool useUnscaledTime = false)
{
if (_tweenHelper == null)
{
throw new GameFrameworkException("ITweenHelper is invalid.");
}
return _tweenHelper.RotationAdditive(target, deltaValue, duration, ease, cycles, cycleMode, startDelay, endDelay, useUnscaledTime);
}
public static long LocalRotationAdditive(UnityEngine.Transform target, UnityEngine.Quaternion deltaValue, float duration, Ease ease = Ease.Default,
int cycles = 1, CycleMode cycleMode = CycleMode.Restart, float startDelay = 0, float endDelay = 0, bool useUnscaledTime = false)
{
if (_tweenHelper == null)
{
throw new GameFrameworkException("ITweenHelper is invalid.");
}
return _tweenHelper.LocalRotationAdditive(target, deltaValue, duration, ease, cycles, cycleMode, startDelay, endDelay, useUnscaledTime);
}
public static long MoveBezierPath(UnityEngine.Transform target, UnityEngine.Vector3[] path, float duration, Ease ease = Ease.Default, int cycles = 1,
CycleMode cycleMode = CycleMode.Restart, float startDelay = 0, float endDelay = 0, bool useUnscaledTime = false)
{
@@ -842,17 +800,6 @@ namespace TEngine
return _tweenHelper.Custom(target, startValue, endValue, duration, onValueChange, ease, cycles, cycleMode, startDelay, endDelay, useUnscaledTime);
}
public static long Custom<T>(T target, uint startValue, uint endValue, float duration, Action<T, uint> onValueChange,
Ease ease = Ease.Default, int cycles = 1, CycleMode cycleMode = CycleMode.Restart, float startDelay = 0, float endDelay = 0, bool useUnscaledTime = false)
where T : class
{
if (_tweenHelper == null)
{
throw new GameFrameworkException("ITweenHelper is invalid.");
}
return _tweenHelper.Custom(target, startValue, endValue, duration, onValueChange, ease, cycles, cycleMode, startDelay, endDelay, useUnscaledTime);
}
public static long Custom<T>(T target, long startValue, long endValue, float duration, Action<T, long> onValueChange,
Ease ease = Ease.Default, int cycles = 1, CycleMode cycleMode = CycleMode.Restart, float startDelay = 0, float endDelay = 0, bool useUnscaledTime = false)
where T : class