// Use this for initialization
    void Start()
    {
        Text scoreText = GetComponent <Text> ();

        scoreAbsorber  = FindObjectOfType <ScoreAbsorber> ();
        scoreText.text = "Score: " + scoreAbsorber.score;
    }
    // Use this for initialization
    void Start()
    {
        text          = GetComponent <Text>();
        scoreAbsorber = FindObjectOfType <ScoreAbsorber>();
        // FIXME doesn't work if set here
//        text.text = "Score: " + scoreAbsorber.Score;
    }
Example #3
0
 // Use this for initialization
 void Start()
 {
     scoreAbsorber = FindObjectOfType <ScoreAbsorber>();
     text          = GetComponent <Text>();
 }
Example #4
0
 // Use this for initialization
 void Start()
 {
     text         = GetComponent <Text>();
     scoreKeeper  = FindObjectOfType <ScoreAbsorber>();
     levelManager = FindObjectOfType <LevelManager>();
 }
 // Use this for initialization
 void Start()
 {
     scoreAbsorber = FindObjectOfType<ScoreAbsorber>();
     text = GetComponent<Text>();
 }
Example #6
0
 // Update is called once per frame
 void Update()
 {
     text      = GetComponent <Text>();
     absorber  = FindObjectOfType <ScoreAbsorber>();
     text.text = "Score: " + absorber.score;
 }
 void Start()
 {
     scoreAbsorber = GameObject.FindObjectOfType <ScoreAbsorber>();
     text          = this.GetComponent <Text>();
 }