public virtual void UpdateRegion() { if (m_Region != null) m_Region.Unregister(); if (this.Map != null) { m_Region = new BoatRegion(this); m_Region.Register(); } else { m_Region = null; } }
public override void OnAfterDelete() { if (m_Region != null) { m_Region.Unregister(); m_Region = null; } if ( m_TillerMan != null ) m_TillerMan.Delete(); if ( m_Hold != null ) m_Hold.Delete(); if ( m_PPlank != null ) m_PPlank.Delete(); if ( m_SPlank != null ) m_SPlank.Delete(); if ( m_TurnTimer != null ) m_TurnTimer.Stop(); if ( m_MoveTimer != null ) m_MoveTimer.Stop(); m_Instances.Remove( this ); }