fix:泡泡宝石任务改死

This commit is contained in:
bzx
2025-10-24 15:49:42 +08:00
parent 33faaaf82f
commit 96875d151c

View File

@@ -63,7 +63,7 @@ public class BubblesGem : MonoBehaviour
preTx.SetActive(true);
MasterAudio.StopAllSoundsOfTransform(transform);
GameManager.Ins.PlaySound3DRPC("1.47", transform);
yield return new WaitForSeconds(0.5f);
yield return new WaitForSeconds(1f);
pre.SetActive(false);
switch (gemType)
@@ -92,17 +92,13 @@ public class BubblesGem : MonoBehaviour
if (gemType == SeekGemType.Real)
{
// 开始飞向手
LaunchTowards(GameManager.Ins.playerRightHand.transform);
// ✅ 修复:等待飞行结束
yield return new WaitUntil(() => !_isMove);
//LaunchTowards(GameManager.Ins.playerRightHand.transform);
transform.position = GameManager.Ins.playerRightHand.transform.position;
_isMove = false;
_isFly = false;
_isGet = true;
GameManager.Ins.PlaySound2DRPC("1.9");
CompleteTask();
// 等待展示时间
// yield return new WaitForSeconds(4f);
// GameManager.Ins.taskManager.CompleteTask();
}
yield return new WaitForSeconds(1f);