Exemple #1
0
 public void OnWorldQuit()
 {
     if (sHolidayAlarm != null)
     {
         sHolidayAlarm.Dispose();
         sHolidayAlarm = null;
     }
 }
Exemple #2
0
 public static void KillAlarm()
 {
     if (sCurrentAlarm != null && UIUtils.IsOkayToStartModalDialog(true)) // stops the game from breaking on travel or loading when paused
     {
         sCurrentAlarm.Dispose();
     }
 }
Exemple #3
0
        public void RemoveAlarm(Common.AlarmTask alarm)
        {
            if (alarm == null)
            {
                return;
            }

            alarm.Dispose();

            mAlarms.Remove(alarm);
        }