Hello! So I have a gun script where I want it to display the amount of ammo left but all of the things I have found online are all in Javascript. The one I found in C++ was this:
public Text example;
private int currentAmmo;
void Update() {
example = currentAmmo;
}
But when I tried this I got this error:
Cannot implicitly convert type int' to
UnityEngine.UI.Text’
Someone please help! Thanks!