Exemple #1
0
    void OnApplicationQuit()
    {
        string title   = LocalizeMgr.Instance.GetLocalizeStr(LocalizeStringKey.NotificationTitle);
        string message = LocalizeMgr.Instance.GetLocalizeStr(LocalizeStringKey.NotificationMessage);

        OCBridge.LocalRepeatWeekNotificationMessage(title, message);
        //OCBridge.LocalIntervalNotificationMessage(title, message, 10);
    }
Exemple #2
0
    void OnApplicationPause(bool paused)
    {
        string title   = LocalizeMgr.Instance.GetLocalizeStr(LocalizeStringKey.NotificationTitle);
        string message = LocalizeMgr.Instance.GetLocalizeStr(LocalizeStringKey.NotificationMessage);

        if (paused)
        {
            OCBridge.LocalRepeatWeekNotificationMessage(title, message);
            //OCBridge.LocalIntervalNotificationMessage(title, message, 10);
        }
        else
        {
            OCBridge.ClearLocalNotification();
        }
    }