1
This commit is contained in:
@@ -5,6 +5,9 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using Unity.Mathematics;
|
||||
#if UNITY_5_3_OR_NEWER
|
||||
using UnityEngine;
|
||||
#endif
|
||||
|
||||
namespace BITKit.Tween
|
||||
{
|
||||
@@ -68,7 +71,13 @@ namespace BITKit.Tween
|
||||
//BIT4Log.Log<TweenSequence>($"已创建Tween,from:[{from}]to:[{to}]duration:[{duration}]delta:[{delta}]");
|
||||
while (t < 1 && cancellationToken.IsCancellationRequested is false)
|
||||
{
|
||||
t = math.clamp(t + delta*BITApp.Time.DeltaTime, 0, 1);
|
||||
var value = t + delta * BITApp.Time.DeltaTime;
|
||||
|
||||
#if UNITY_5_3_OR_NEWER
|
||||
value = t+ delta * Time.deltaTime;
|
||||
#endif
|
||||
|
||||
t = math.clamp(value, 0, 1);
|
||||
var next = func(from, to, t);
|
||||
#if UNITY_5_3_OR_NEWER
|
||||
await UniTask.NextFrame(cancellationToken);
|
||||
|
Reference in New Issue
Block a user