Exemplo n.º 1
0
    private void Start()
    {
        if (Games.sections == null || Games.sections.Count == 0)
        {
            return;
        }
        DateTime now = DateTime.Now;

        if (now.Day % 2 == 1)
        {
            now = now.AddDays(1.0);
            if (now.Day == 1)
            {
                now = now.AddDays(1.0);
            }
        }
        else
        {
            now = now.AddDays(2.0);
        }
        DateTime d = new DateTime(now.Year, now.Month, now.Day, 21, 0, 0);

        NotificationSystem.CreateQuestReadyNotification((int)(d - DateTime.Now).TotalSeconds);
    }