Compare commits
3 Commits
66274cd019
...
11e2ef00be
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
11e2ef00be | ||
|
|
31b9ad019b | ||
|
|
4caa18e3fe |
@@ -2,6 +2,7 @@ using UnityEngine;
|
|||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
using A2W;
|
using A2W;
|
||||||
using Cysharp.Threading.Tasks;
|
using Cysharp.Threading.Tasks;
|
||||||
|
using DG.Tweening;
|
||||||
|
|
||||||
public class LaunchPanel : UIPanel
|
public class LaunchPanel : UIPanel
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"name": "DOTween.Modules"
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 4a52bb1e4dc996b4dab9614342469223
|
||||||
|
AssemblyDefinitionImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Reference in New Issue
Block a user