Example #1
0
 public virtual void Dispose()
 {
     if (animation != null)
     {
         animation.Dispose();
     }
 }
Example #2
0
 public void Dispose()
 {
     this.visible = false;
     if (image != null)
     {
         image.Dispose();
         image = null;
     }
     if (animation != null)
     {
         animation.Dispose();
         animation = null;
     }
 }