示例#1
0
 public EventModel(DateTime eventTime, TimerModel timerModel, PushNotificationConfig pushnote, AppConfigurations app, GameObject parent)
 {
     StartTime = new ReactiveProperty <DateTime>(eventTime);
     _pushnote = pushnote;
     _app      = app;
     SubscribeToTimer(timerModel, parent);
 }
示例#2
0
    private void StartEvent(GameObject parent)
    {
        //Debug.Log("An event triggered.");
        PushNotificationConfig pushnote = Object.Instantiate(_pushnote, parent.transform);

        pushnote.Icon    = _app.Icon;
        pushnote.Title   = _app.Name.ToString();
        pushnote.Content = _app.PushNoteContent;
        Object.Destroy(pushnote, pushnote.GetComponent <Animator>().GetCurrentAnimatorStateInfo(0).length);  //Zeitpunkt destroy in Pushnotificationconfig
    }