private void Clear() { if (_alpha != null) { _alpha.Dispose(); _alpha = null; } if (_barrage != null) { Sprite.XResource.TextLayouts.Remove( _barrage.Text, FontSize); _barrage = null; } Status = QuoteStatus.Peath; }
public override void Update(float dt) { base.Update(dt); if (PersonSprite.IsAlive) { return; } Sprite.Alpha = (float)_var.Value; if (_var.Value == _var.FinalValue) { _var.Dispose(); _var = null; ((PersonSprite)Sprite).SetCanBeDelete(); } }