public void UpdateRegion() { if (m_Coords != null) { if (m_Region != null) { m_Region.Unregister(); } CheckRectFix(); m_Region = new TArenaRegion(this, this.Map, this.m_Coords.ToArray()); m_Region.Disabled = true; m_Region.Register(); } return; }
public void UpdateRegion() { if( m_Coords != null ) { if( m_Region != null ) m_Region.Unregister(); CheckRectFix(); m_Region = new TArenaRegion( this, this.Map, this.m_Coords.ToArray() ); m_Region.Disabled = true; m_Region.Register(); } return; }