看板娘调整界面 增加自带返回时的修改保存

main
Yuntao Hu 2024-10-14 18:58:14 +08:00
parent 2575cb9716
commit 3c7d3f1daa
1 changed files with 7 additions and 5 deletions

View File

@ -296,15 +296,17 @@ public class UICameraAndPosterChangeController : UIWindow
#endregion
}
public override UniTask<bool> OnBack(object data = null)
{
public override UniTask<bool> OnBack(object data = null)
{
if (inPosterEdit)
{
EventManager.Instance.Send(EventManager.EventName.MainPanelPosterRelocateCancel);
return new UniTask<bool>(true);
}
return base.OnBack(data);
}
}
if (_CheckAndSaveChange())
return new UniTask<bool>(true);
return base.OnBack(data);
}
#region #Event Function