private void setupController(TWLoadingImageLib loadImageLibrary, ImageLoadType imageLoadType) { aspectRatioFitter = loadImage.gameObject.GetComponent <AspectRatioFitter>(); this.loadImageLibrary = loadImageLibrary; changeImageLoadAspectFitter(imageLoadType); }
public static void SetupController(TWLoadingImageLib backgroundLibrary, ImageLoadType imageLoadType = ImageLoadType.AUTO_FIT) { Instance?.setupController(backgroundLibrary, imageLoadType); }