Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
text system for space shooter
[SerializeField]
private Text _ammoCount;
void Start()
{
_ammoCount.text = "Ammo: " + 15;
}
public void UpdateAmmoCount(int ammo)
{
_ammoCount.text = "Ammo: " + ammo.ToString();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment