コード例 #1
0
ファイル: BackgroundController.cs プロジェクト: mengtest/Nova
 /// <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;
 }
コード例 #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);
 }