## # タイマーによる1秒ごとのワーク # def timer_work() @timer_counter -= 1 if @timer_counter == 0 trigger_event( "TIMEUP" ) else trigger_event( "TIMER" ) end end