public override void OnAfterDelete() { base.OnAfterDelete(); if (_Region != null) { _Region.Unregister(); } _Region = null; }
public void UpdateRect() { if (_Region != null) { _Region.Unregister(); _Region = null; } if (_Rect.Start != Point2D.Zero && _Rect.End != Point2D.Zero && this.Map != Map.Internal) { _Region = new BattleVirtueRegion(this, _Rect, this.GetWorldLocation(), this.Map); } }
public void UpdateRect() { if (_Region != null) { _Region.Unregister(); _Region = null; } if (_Rect.Start != Point2D.Zero && _Rect.End != Point2D.Zero && this.Map != Map.Internal) _Region = new BattleVirtueRegion(this, _Rect, this.GetWorldLocation(), this.Map); }
public override void OnAfterDelete() { base.OnAfterDelete(); if (_Region != null) _Region.Unregister(); _Region = null; }