// 依據條件來更新教學物件的顯示狀態 public void UpdateTimeTrigger( ref TimeTrigger _TimeTrigger , bool _SpecialCondition , string _MessageCardObjName ) { if( true == _TimeTrigger.IsClosed() ) return ; if( true == _SpecialCondition && true == _TimeTrigger.IsReady() ) { _TimeTrigger.Close() ;// just close. } else if( true == _TimeTrigger.IsAboutToStart( true ) ) { ShowGUITexture.Show( _MessageCardObjName , true , true , true ) ; } else if( true == _TimeTrigger.IsActive() && ( true == _SpecialCondition || true == _TimeTrigger.IsTimeEnded() ) ) { ShowGUITexture.Show( _MessageCardObjName , false , true , true ) ; _TimeTrigger.Close() ; } }