예제 #1
0
 public void RemoveSprite(MFSprite sprite)
 {
     if (spriteList.Contains(sprite))
     {
         this.spriteList.Remove(sprite);
         sprite.OnRemoved();
     }
 }
예제 #2
0
 public void AddSprite(MFSprite sprite)
 {
     if (!spriteList.Contains(sprite))
     {
         this.spriteList.Add(sprite);
         sprite.OnAdded(this);
     }
 }