private void Awake() { UpdateStatus("Status: Not Ready"); //listen for event LocalNotificationPlugin.OnLocalNotificationLoadComplete += OnLocalNotificationLoadComplete; LocalNotificationPlugin.OnLocalNotificationLoadFail += OnLocalNotificationLoadFail; localNotificationPlugin = LocalNotificationPlugin.GetInstance(); localNotificationPlugin.SetDebug(0); localNotificationPlugin.Init(); timePlugin = TimePlugin.GetInstance(); timePlugin.SetDebug(0); int isOpenUsingNotification = localNotificationPlugin.IsOpenUsingNotification(); Debug.Log("[ShareAndExperienceDemo]: isOpenUsingNotification " + isOpenUsingNotification); if (isOpenUsingNotification == 1) { //do something here } else { //do something here } }
// Use this for initialization void Start() { timePlugin = TimePlugin.GetInstance(); timePlugin.SetDebug(0); utilsPlugin = UtilsPlugin.GetInstance(); utilsPlugin.SetDebug(0); }
// Use this for initialization void Start (){ timePlugin = TimePlugin.GetInstance(); timePlugin.SetDebug(0); alarmPlugin = AlarmPlugin.GetInstance(); alarmPlugin.SetDebug(0); alarmPlugin.Init(); }
private void Awake() { AlarmPlugin.OnAlarmLoadComplete += OnAlarmLoadComplete; AlarmPlugin.OnAlarmLoadFail += OnAlarmLoadFail; timePlugin = TimePlugin.GetInstance(); timePlugin.SetDebug(0); alarmPlugin = AlarmPlugin.GetInstance(); alarmPlugin.SetDebug(0); alarmPlugin.EnableSound(true); alarmPlugin.EnableVibrate(true); alarmPlugin.Init(); }