malliaanthony / IMTAssignment2016

0 stars 0 forks source link

Score not implemented yet #6

Closed stevencamilleri closed 8 years ago

stevencamilleri commented 8 years ago

The client requires a game object with score and this is yet to be implemented to the ball game object. With every second that passes the score needs to be updated (point per second) and if the ball hits a coin during the game the score should increase by 10.

stevencamilleri commented 8 years ago

For the score to update with every second of game play I should create a variable containing the score text, a timer that calculates each second of game play and then write "score += Time.deltaTime;". In the OnTriggerEnter where the object detects collision with the coin, I will write "score += 10;" and "UpdateUI()" to update the score accordingly. In the Update UI () function, the score text display will be implemented.