Exemplo n.º 1
0
 public void OnWorldQuit()
 {
     if (sHolidayAlarm != null)
     {
         sHolidayAlarm.Dispose();
         sHolidayAlarm = null;
     }
 }
Exemplo n.º 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();
     }
 }
Exemplo n.º 3
0
        public void RemoveAlarm(Common.AlarmTask alarm)
        {
            if (alarm == null)
            {
                return;
            }

            alarm.Dispose();

            mAlarms.Remove(alarm);
        }