/// <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); }
void OnMapObjectLayerGenerated(Layer layer) { _generatedMapObjectLayers++; if (_generatedMapObjectLayers >= _mapObjectLayersToGenerate) { if (OnGeneratedMapObjectLayers != null) OnGeneratedMapObjectLayers(); } }
void OnTileLayerGenerated(Layer tileLayer) { _generatedTileLayers++; if (_generatedTileLayers >= _tileLayersToGenerate) { if (OnGeneratedTileLayers != null) OnGeneratedTileLayers(); } }
void OnImageLayerGenerated(Layer layer) { _generatedImageLayers++; if (_generatedImageLayers >= _imageLayersToGenerate) { if (OnGeneratedImageLayers != null) OnGeneratedImageLayers(); } }