Rebedalm16 / stackhigh

assignment
0 stars 0 forks source link

score has to show on top #3

Open Rebedalm16 opened 9 years ago

Rebedalm16 commented 9 years ago

In Order for the score to work this code has to implemted: public int score = 0;

void OnGUI() {
    GUI.color = Color.black;
    GUI.Label( new Rect(200,60,100,100), "Score: " + score);
}

}

The score will add by 1 every time the random objects are put on the platform at the bottom. This code will show the core on the top left hand corn of the scene.