I have this set up in a way I think it should work but it keeps saying “: Cannot implicitly convert type ‘string’ to ‘UnityEngine.GameObject’”
using UnityEngine.UI;
public GameObject Bs_In_Gun;
public float bullets;
public float MaxBullets;
void Start () {
bullets = MaxBullets;
Bs_In_Gun = GetComponent<Text> ().text = "" + bullets;
}