First Text Block Code

public class AdventureGame : MonoBehaviour
{
string firstGameBoxText = “This is the first text!”;

[SerializeField] Text textComponent;

// Start is called before the first frame update
void Start()
{
    textComponent.text = (firstGameBoxText);
}

// Update is called once per frame
void Update()
{
    
}

}

Privacy & Terms