how i want to create time and display it on the top of the screen and record it…after the player has finish the game it will display the time…i already try to look for the tutorial but never find it…hope anyone can help me…
Realtime? C# code ahead…
Do this when the game starts:
PlayerPrefs.SetFloat("SessionTime", Time.realtimeSinceStartup);
Do this when the game ends:
float sessionTime = Time.realtimeSinceStartup - PlayerPrefs.GetFloat("SessionTime");
Then display it to the player…