day2加上clueboard以及流程调整跑通
This commit is contained in:
@@ -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();
|
||||
|
||||
// 等待用户确认
|
||||
|
||||
Reference in New Issue
Block a user