mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
Tween:新增MaterialColor
This commit is contained in:
@@ -205,7 +205,8 @@ namespace TEngine
|
|||||||
|
|
||||||
public long Color(UnityEngine.SpriteRenderer target, UnityEngine.Color startValue, UnityEngine.Color endValue, float duration, Ease ease = Ease.Default, int cycles = 1,
|
public long Color(UnityEngine.SpriteRenderer target, UnityEngine.Color startValue, UnityEngine.Color endValue, float duration, Ease ease = Ease.Default, int cycles = 1,
|
||||||
CycleMode cycleMode = CycleMode.Restart, float startDelay = 0, float endDelay = 0, bool useUnscaledTime = false);
|
CycleMode cycleMode = CycleMode.Restart, float startDelay = 0, float endDelay = 0, bool useUnscaledTime = false);
|
||||||
|
public long MaterialColor(UnityEngine.Material target, UnityEngine.Color startValue, UnityEngine.Color 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 Alpha(UnityEngine.SpriteRenderer target, Single endValue, float duration, Ease ease = Ease.Default, int cycles = 1, CycleMode cycleMode = CycleMode.Restart,
|
public long Alpha(UnityEngine.SpriteRenderer target, Single endValue, float duration, Ease ease = Ease.Default, int cycles = 1, CycleMode cycleMode = CycleMode.Restart,
|
||||||
float startDelay = 0, float endDelay = 0, bool useUnscaledTime = false);
|
float startDelay = 0, float endDelay = 0, bool useUnscaledTime = false);
|
||||||
|
|
||||||
|
@@ -486,7 +486,16 @@ namespace TEngine
|
|||||||
return _tweenHelper.Color(target, startValue, endValue, duration, ease, cycles, cycleMode, startDelay, endDelay, useUnscaledTime);
|
return _tweenHelper.Color(target, startValue, endValue, duration, ease, cycles, cycleMode, startDelay, endDelay, useUnscaledTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static long MaterialColor(UnityEngine.Material target, UnityEngine.Color startValue, UnityEngine.Color endValue, 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.MaterialColor(target, startValue, endValue, duration, ease, cycles, cycleMode, startDelay, endDelay, useUnscaledTime);
|
||||||
|
}
|
||||||
public static long Alpha(UnityEngine.SpriteRenderer target, Single endValue, float duration, Ease ease = Ease.Default, int cycles = 1, CycleMode cycleMode = CycleMode.Restart,
|
public static long Alpha(UnityEngine.SpriteRenderer target, Single endValue, float duration, Ease ease = Ease.Default, int cycles = 1, CycleMode cycleMode = CycleMode.Restart,
|
||||||
float startDelay = 0, float endDelay = 0, bool useUnscaledTime = false)
|
float startDelay = 0, float endDelay = 0, bool useUnscaledTime = false)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user