static void Main(string[] args) { CustomTimer customTimer=new CustomTimer(); MicrowaveAlarm microwaveAlarm=new MicrowaveAlarm(customTimer); HandWatchAlarm handWatchAlarm=new HandWatchAlarm(customTimer); customTimer.StartTimer(5); Thread.Sleep(5500); microwaveAlarm.Unregister(customTimer); customTimer.StartTimer(3); Thread.Sleep(3500); handWatchAlarm.Unregister(customTimer); Console.ReadKey(); }
static void Main(string[] args) { CustomTimer customTimer = new CustomTimer(); MicrowaveAlarm microwaveAlarm = new MicrowaveAlarm(customTimer); HandWatchAlarm handWatchAlarm = new HandWatchAlarm(customTimer); customTimer.StartTimer(5); Thread.Sleep(5500); microwaveAlarm.Unregister(customTimer); customTimer.StartTimer(3); Thread.Sleep(3500); handWatchAlarm.Unregister(customTimer); Console.ReadKey(); }
public void StartSurveyPhase() { timerStartPhase.gameObject.SetActive(false); OnStartSurveyPhase.Invoke(); timerSurveyPhase.StartTimer(); }
public void StartGame() { timerStartPhase.gameObject.SetActive(true); timerStartPhase.duration = durationStartPhase; timerSurveyPhase.duration = durationSurveyPhase; timerDancePhase.duration = durationDancePhase; timerCollectionPhase.duration = durationCollectionPhase; timerStartPhase.StartTimer(); }
public void StartCollectionPhase() { OnStartCollectionPhase.Invoke(); // disble camera targeting system // disble world targeting system worldTargetingSystem.gameObject.SetActive(false); cameraTargetingSystem.gameObject.SetActive(false); timerCollectionPhase.StartTimer(); }
public void StartDancePhase() { OnStartDancePhase.Invoke(); // enable camera targeting system // enable world targeting system worldTargetingSystem.gameObject.SetActive(true); cameraTargetingSystem.gameObject.SetActive(true); timerDancePhase.StartTimer(); }
/// <summary> /// Start timer with _gameTime /// </summary> void OnStartGame() { GameTimer.StartTimer(this, _gameTime); }