/// <summary> /// Change the background image /// This method is designed to be called by external scripts /// </summary> /// <param name="imageName">The name of the image file</param> public void SetImage(string imageName) { _spriteChanger.sprite = AssetsLoader.GetSprite(System.IO.Path.Combine(imageFolder, imageName)); currentImageName = imageName; }
/// <summary> /// Change the background image /// This method is designed to be called by external scripts /// </summary> /// <param name="imageName">The name of the image file</param> public void SetImage(string imageName) { _spriteRenderer.sprite = AssetsLoader.GetSprite(imageFolder + imageName); }