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