예제 #1
0
    void Start()
    {
        Text myText = GetComponent <Text> ();

        myText.text = ScroreKeeper.score.ToString();
        ScroreKeeper.Reset();
    }
예제 #2
0
 void Start()
 {
     scoreKeeper  = GameObject.Find("Score").GetComponent <ScroreKeeper>();
     enemySpawner = GameObject.FindObjectOfType <EnemySpawner>();
 }