至少跑通了
This commit is contained in:
@@ -45,7 +45,7 @@ public class UFProcess : MonoBehaviour,IViewLifecycle
|
||||
public void OnShow()
|
||||
{
|
||||
// Debug.Log("UFview Show");
|
||||
// StartCoroutine(ProcessMemory("liuying1-2"));
|
||||
StartCoroutine(ProcessMemory("liuying1-2"));
|
||||
}
|
||||
|
||||
public void OnExit()
|
||||
@@ -64,8 +64,11 @@ public class UFProcess : MonoBehaviour,IViewLifecycle
|
||||
Debug.LogWarning("Already processing a memory. Please wait until the process is finished.");
|
||||
yield break;
|
||||
}
|
||||
|
||||
isProcessing = true; // 开始处理,设置为true
|
||||
yield return new WaitForSeconds(3f);
|
||||
AudioManager.PauseLoopAudio();
|
||||
isProcessing = false;
|
||||
DialogController.Instance.StartDialogNode("UF进程播放完毕");
|
||||
|
||||
|
||||
// Sprite memoryFinishedSprite = Resources.Load<Sprite>("Art/Memory/" + memoryFinishedImageName);
|
||||
@@ -140,10 +143,6 @@ public class UFProcess : MonoBehaviour,IViewLifecycle
|
||||
// isProcessing = false; // 处理完成,设置为false
|
||||
// AudioManager.PauseLoopAudio();
|
||||
// });
|
||||
yield return new WaitForSeconds(3f);
|
||||
AudioManager.PauseLoopAudio();
|
||||
isProcessing = false;
|
||||
DialogController.Instance.StartDialogNode("UF进程播放完毕");
|
||||
}
|
||||
public bool IsProcessing()
|
||||
{
|
||||
|
||||
@@ -15881,7 +15881,7 @@ GameObject:
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!224 &641055555
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -37790,7 +37790,7 @@ GameObject:
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!224 &1700390217
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
Reference in New Issue
Block a user