/// <summary>
 /// Applies to gameObject any custom X-UniTMX properties present on layer
 /// </summary>
 /// <param name="gameObject">GameObject to apply custom properties to</param>
 /// <param name="layer">Layer to read custom properties from</param>
 public static void ApplyCustomProperties(GameObject gameObject, Layer layer)
 {
     ApplyCustomProperties(gameObject, layer.Properties);
 }
Exemple #2
0
 void OnMapObjectLayerGenerated(Layer layer)
 {
     _generatedMapObjectLayers++;
     if (_generatedMapObjectLayers >= _mapObjectLayersToGenerate)
     {
         if (OnGeneratedMapObjectLayers != null)
             OnGeneratedMapObjectLayers();
     }
 }
Exemple #3
0
 void OnTileLayerGenerated(Layer tileLayer)
 {
     _generatedTileLayers++;
     if (_generatedTileLayers >= _tileLayersToGenerate)
     {
         if (OnGeneratedTileLayers != null)
             OnGeneratedTileLayers();
     }
 }
Exemple #4
0
 void OnImageLayerGenerated(Layer layer)
 {
     _generatedImageLayers++;
     if (_generatedImageLayers >= _imageLayersToGenerate)
     {
         if (OnGeneratedImageLayers != null)
             OnGeneratedImageLayers();
     }
 }