Esempio n. 1
0
 /// <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;
 }
Esempio n. 2
0
 /// <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);
 }