Created
January 25, 2023 01:59
-
-
Save haramakoto/a13e317d9b21fc15e92684be314b5001 to your computer and use it in GitHub Desktop.
画像で数字を表示する・1桁分
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace com.etc.utility | |
{ | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class ImageNumViewUnit : MonoBehaviour | |
{ | |
[SerializeField] | |
private Sprite[] numSprites; | |
[SerializeField] | |
private Image numImage; | |
public void ShowNum(int num) | |
{ | |
this.numImage.sprite = this.numSprites[num]; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment