diff options
| author | Sarah B <git@sarahduck.ca> | 2024-01-20 15:28:48 -0800 |
|---|---|---|
| committer | Sarah B <git@sarahduck.ca> | 2024-01-20 15:28:48 -0800 |
| commit | 163a2f1a1076d518b04ee37911bdd40afe8b9b2c (patch) | |
| tree | d28b56d5b0b43da21dab92e61f9967e303b7d063 /Oneko.cs | |
| parent | 31d9168080e52738829b5575c66627e43a8bdc38 (diff) | |
Added finalizers
Diffstat (limited to 'Oneko.cs')
| -rw-r--r-- | Oneko.cs | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -59,11 +59,10 @@ abstract class Oneko : Drawable Raylib.DrawTexturePro(SpriteSheet.Texture, Sprite, new Rectangle(Position.X, Position.Y, Size.X, Size.Y), Size/2, Rotation, ColorTint); } - public override void Dispose() + protected override void Unload() { allNekos.Remove(this); SpriteSheet.Dispose(); - base.Dispose(); } protected struct OnekoAnimation(Rectangle frame1, Rectangle frame2, byte animSpeed) |
