// Update is called once per frame void Update() { text.text = ballGod.GetScore().ToString(); }
// Use this for initialization void Start() { ballGod = Object.FindObjectOfType <BallGod>(); text = gameObject.GetComponent <Text>(); text.text = ballGod.GetScore().ToString(); }