Ejemplo n.º 1
0
    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
        }
    }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        timePlugin = TimePlugin.GetInstance();
        timePlugin.SetDebug(0);

        utilsPlugin = UtilsPlugin.GetInstance();
        utilsPlugin.SetDebug(0);
    }
Ejemplo n.º 3
0
	// Use this for initialization
	void Start (){
		timePlugin = TimePlugin.GetInstance();
		timePlugin.SetDebug(0);

		alarmPlugin = AlarmPlugin.GetInstance();
		alarmPlugin.SetDebug(0);
		alarmPlugin.Init();
	}
Ejemplo n.º 4
0
    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();
    }