public void UpdateRegion()
        {
            if (m_Region != null)
                m_Region.Unregister();

            if (this.Map != null && this.Active)
            {
                if (this != null && this.RegionArea != null && this.RegionArea.Length > 0)
                {
                    m_Region = new CustomRegion(this);
                    // m_Region.GoLocation = m_CustomGoLocation;  // REMOVED
                    m_Region.Register();
                }
                else
                    m_Region = null;
            }
            else
                m_Region = null;
        }
Esempio n. 2
0
		public void UpdateRegion() {
			if( m_Region != null )
				m_Region.Unregister();

			if( this.Map != null && this.Active ) {
				if( this != null && this.RegionArea != null && this.RegionArea.Length > 0 ) {
					m_Region = new CustomRegion( this );
					m_Region.Register();
				} else
					m_Region = null;
			} else
				m_Region = null;
		}
Esempio n. 3
0
        public void UpdateRegion()
        {
            if (m_Region != null)
			{
				if (!Initialized)
				{
					m_Region.GoLocation = new Point3D( 0, 0, 0 );
					Initialized = true;
				}
                m_Region.Unregister();
			}

            if (this.Map != null && this.Active)
            {
                if (this != null && this.RegionArea != null && this.RegionArea.Length > 0)
                {
                    m_Region = new CustomRegion(this);

						m_Region.GoLocation = m_CustomGoLocation; 
                    m_Region.Register();
                }
                else
                    m_Region = null;
            }
            else
                m_Region = null;
        }