diff --git a/popcorn/Assets/Joypac/Scripts/JoypacManager.cs b/popcorn/Assets/Joypac/Scripts/JoypacManager.cs index ce9067d4..2f7b9c55 100644 --- a/popcorn/Assets/Joypac/Scripts/JoypacManager.cs +++ b/popcorn/Assets/Joypac/Scripts/JoypacManager.cs @@ -52,9 +52,7 @@ public class JoypacManager : MonoBehaviour LocalNotificationManager.Instance.Init();//推送 - NotificationMessage(PushText(), 12, true); - - NotificationMessage(PushText(), 18, true); + #if ANDROID_GP JoypacFBManager.Instance.Init(); @@ -69,39 +67,7 @@ public class JoypacManager : MonoBehaviour } - public string PushText() - { - int temp= Random.Range(1,3); - string text = ""; - switch (temp) - { - case 1: - text = "客人们都想念你爆米花的味道啦~"; - break; - case 2: - text = "是时候来收玉米做一锅香喷喷的爆米花啦~"; - break; - case 3: - text = "新的配方,新的味道,快做来尝一尝呀~"; - break; - default: - Debug.Log("temp"+ temp); - break; - } - return text; - - } - -public void NotificationMessage(string message, int hour, bool isRepeatDay) - { - int year = System.DateTime.Now.Year; - int month = System.DateTime.Now.Month; - int day = System.DateTime.Now.Day; - System.DateTime newDate = new System.DateTime(year, month, day, hour, 0, 0); - - LocalNotificationManager.NotificationMessage(message, newDate, isRepeatDay); - - } + IEnumerator CrossEnumerator() { diff --git a/popcorn/Assets/Other/Push/LocalNotificationManager.cs b/popcorn/Assets/Other/Push/LocalNotificationManager.cs index fa1da03d..c072adc9 100644 --- a/popcorn/Assets/Other/Push/LocalNotificationManager.cs +++ b/popcorn/Assets/Other/Push/LocalNotificationManager.cs @@ -22,11 +22,12 @@ public sealed class LocalNotificationManager : JoypacSingleMonoBehaviour