替换资源和音频
This commit is contained in:
@@ -3,6 +3,7 @@ using RainbowArt.CleanFlatUI;
|
||||
using Yarn.Unity;
|
||||
using System.Collections;
|
||||
using DG.Tweening;
|
||||
using AibisDream;
|
||||
|
||||
public class WindowManager : MonoBehaviour
|
||||
{
|
||||
@@ -30,6 +31,7 @@ public class WindowManager : MonoBehaviour
|
||||
[YarnCommand("OpenSingleButtonWindow")]
|
||||
public IEnumerator OpenSingleButtonWindow(string title, string description, bool ispanelActive = true)
|
||||
{
|
||||
AudioManager.PlayMemoryAudio("ui");
|
||||
bool isConfirmed = false;
|
||||
singleButtonWindowPrefab.transform.GetChild(0).gameObject.SetActive(ispanelActive);
|
||||
|
||||
@@ -48,6 +50,7 @@ public class WindowManager : MonoBehaviour
|
||||
[YarnCommand("OpenMutiSingleButtonWindow")]
|
||||
public IEnumerator OpenMutiSingleButtonWindow(string title, string description, int number)
|
||||
{
|
||||
AudioManager.PlayMemoryAudio("ui");
|
||||
bool isConfirmed = false;
|
||||
singleButtonWindowPrefab.transform.GetChild(0).gameObject.SetActive(false);
|
||||
|
||||
@@ -66,6 +69,7 @@ public class WindowManager : MonoBehaviour
|
||||
[YarnCommand("OpenProgressWindow")]
|
||||
public IEnumerator OpenProgressWindow(string title, string description, float duration)
|
||||
{
|
||||
AudioManager.PlayMemoryAudio("ui");
|
||||
progressWindowPrefab.TitleValue = title;
|
||||
progressWindowPrefab.DescriptionValue = description;
|
||||
float currentProgress = 0;
|
||||
|
||||
Reference in New Issue
Block a user