chore(m2): 保存功能验收及后续清理前检查点
This commit is contained in:
@@ -16,8 +16,7 @@ public class GiftNoticePanel : MonoBehaviour
|
||||
Button btn_watch2;
|
||||
public RewardItemNew[] rewardItemNews;
|
||||
private Tables _tables;
|
||||
ILocalNotificationService notificationService;
|
||||
bool handlingNotification;
|
||||
private ILocalNotificationService notificationService;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
@@ -61,29 +60,15 @@ public class GiftNoticePanel : MonoBehaviour
|
||||
PlayerPrefs.SetInt("GiftNoticePanel", 1);
|
||||
OnClose();
|
||||
}
|
||||
async void OnClickYES()
|
||||
void OnClickYES()
|
||||
{
|
||||
if (this == null || handlingNotification) return;
|
||||
handlingNotification = true;
|
||||
try
|
||||
if (this == null)
|
||||
{
|
||||
if (notificationService is LocalNotificationService local && local.HasKVPromptOwner)
|
||||
{
|
||||
local.RequirePromptOwner();
|
||||
await local.OpenSettingsAsync();
|
||||
if (this == null) return;
|
||||
local.RequirePromptOwner();
|
||||
}
|
||||
else
|
||||
{
|
||||
OnClose();
|
||||
notificationService.OpenSettings();
|
||||
return;
|
||||
}
|
||||
OnClose();
|
||||
return;
|
||||
}
|
||||
catch (System.Exception ex) { game.DefaultSettingService.LogPromptFailure(ex); }
|
||||
finally { handlingNotification = false; }
|
||||
(notificationService as LocalNotificationService)?.RequirePromptOwner();
|
||||
OnClose();
|
||||
notificationService.OpenSettings();
|
||||
}
|
||||
void OnClose()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user