how to add Scoring to unity3D 2d top down car game? -


i'm making 2d top down car game. car game working if player car hit enemy car game over.

i used adding tag enemy car , if player car collision detect enemy car tag finish game.

my question is: how can implement scoring after player car passing enemy car?

since racing game, time complete race main scoring factor. faster player finishes race higher score. question passing enemy car can check calculating distance player has covered on race path vs distance enemy has covered. if player distance greater enemy distance player has passed enemy. distance can checked in many ways. 1 approach place waypoints on race path , update check distance waypoints.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -