石头引擎合入,添加了抖动,进度条,速度显示
This commit is contained in:
@@ -20,6 +20,7 @@ namespace AibisDream
|
||||
private bool _isSuccess;
|
||||
|
||||
public float curSpeed;
|
||||
public float targetSpeed=0.95f;
|
||||
[HideInInspector] public UnityEvent<float, float> updateSpeedEvent = new();
|
||||
|
||||
[SerializeField] private float coverMoveDuration = 5f;
|
||||
@@ -61,7 +62,7 @@ namespace AibisDream
|
||||
private void Update()
|
||||
{
|
||||
updateSpeedEvent.Invoke(curSpeed, GetSpeedScale());
|
||||
if (curSpeed >= 0.99f && !_isSuccess)
|
||||
if (curSpeed >= targetSpeed && !_isSuccess)
|
||||
{
|
||||
_isSuccess = true;
|
||||
isPullActive = false;
|
||||
|
||||
Reference in New Issue
Block a user