This commit is contained in:
xinkl
2025-11-09 14:06:12 +08:00
4 changed files with 24 additions and 14 deletions

View File

@@ -3,6 +3,7 @@ using UnityEngine.UI;
using A2W; using A2W;
using Cysharp.Threading.Tasks; using Cysharp.Threading.Tasks;
using UnityEngine.InputSystem; using UnityEngine.InputSystem;
using DG.Tweening;
public class LaunchPanel : UIPanel public class LaunchPanel : UIPanel
{ {

View File

@@ -3,6 +3,7 @@ using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using Cysharp.Threading.Tasks; using Cysharp.Threading.Tasks;
using A2W; using A2W;
using DG.Tweening;
public class LoadingPanel : UIPanel, ITransition public class LoadingPanel : UIPanel, ITransition
{ {
@@ -21,14 +22,13 @@ public class LoadingPanel : UIPanel, ITransition
{ {
isDirty = true; isDirty = true;
//Tween tween = canvasGroup.DOFade(1, 0.2f); Tween tween = canvasGroup.DOFade(1, 0.2f);
while (tween != null && tween.active && !tween.IsComplete())
{
await UniTask.Yield();
}
//while (tween != null && tween.active && !tween.IsComplete()) //canvasGroup.alpha = 1;
//{
// await UniTask.Yield();
//}
canvasGroup.alpha = 1;
isDirty = false; isDirty = false;
@@ -39,14 +39,13 @@ public class LoadingPanel : UIPanel, ITransition
{ {
isDirty = true; isDirty = true;
//Tween tween = canvasGroup.DOFade(0, 0.2f); Tween tween = canvasGroup.DOFade(0, 0.2f);
while (tween != null && tween.active && !tween.IsComplete())
{
await UniTask.Yield();
}
//while (tween != null && tween.active && !tween.IsComplete()) //canvasGroup.alpha = 0;
//{
// await UniTask.Yield();
//}
canvasGroup.alpha = 0;
isDirty = false; isDirty = false;

View File

@@ -0,0 +1,3 @@
{
"name": "DOTween.Modules"
}

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 4a52bb1e4dc996b4dab9614342469223
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: