void CCustomDetector::TurnDetectorInternal(bool b) { m_bWorking = b; if(b && m_ui==NULL) { CreateUI (); }else { //. xr_delete (m_ui); } UpdateNightVisionMode (b); }
void CCustomDetector::shedule_Update(u32 dt) { inherited::shedule_Update (dt); if( !IsWorking() ) return; if( !H_Parent() ) return; Position().set(H_Parent()->Position()); Fvector P; P.set (H_Parent()->Position()); feel_touch_update (P,m_fRadius); UpdateNightVisionMode(); }
void CCustomDetector::TurnOff() { m_bWorking = false; UpdateMapLocations (); UpdateNightVisionMode (); }