day2加上clueboard以及流程调整跑通

This commit is contained in:
2024-12-11 17:28:11 +08:00
parent 6babd10819
commit 97645fece3
54 changed files with 6694 additions and 7411 deletions
@@ -37,7 +37,25 @@ public class WindowManager : MonoBehaviour
singleButtonWindowPrefab.TitleValue = title;
singleButtonWindowPrefab.DescriptionValue = description;
singleButtonWindowPrefab.OnConfirm.AddListener(() => isConfirmed = true);
singleButtonWindowPrefab.ShowModalWindow();
// 等待用户确认
yield return new WaitUntil(() => isConfirmed);
singleButtonWindowPrefab.OnConfirm.RemoveAllListeners();
}
[YarnCommand("OpenMutiSingleButtonWindow")]
public IEnumerator OpenMutiSingleButtonWindow(string title, string description,int number)
{
bool isConfirmed = false;
singleButtonWindowPrefab.transform.GetChild(0).gameObject.SetActive(false);
singleButtonWindowPrefab.TitleValue = title;
singleButtonWindowPrefab.DescriptionValue = description;
singleButtonWindowPrefab.OnConfirm.AddListener(() => isConfirmed = true);
singleButtonWindowPrefab.ShowModalWindow();
// 等待用户确认