Example #1
0
 public void FreeAllAssets(NewBehaviourScript scene)
 {
     Tile tile;
     for (int y = 0; y < this.Height; ++y)
     {
         for (int x = 0; x < this.Width; ++x)
         {
             tile = this.Tiles[x][y];
             if (tile != null)
             {
                 if (tile.Transform != null)
                 {
                     scene.RemoveTransform(tile.Transform);
                 }
             }
         }
     }
 }
Example #2
0
 public void Kill(NewBehaviourScript scene)
 {
     if (this.isDead) return;
     this.isDead = true;
     scene.RemoveTransform(this.transform);
     this.transform = null;
 }