Advertisement
nikcio

Untitled

Oct 11th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. Timer_num += Time.deltaTime;
  2.  
  3. Hour = Mathf.FloorToInt(Timer_num / 60f / 24f);
  4. Minute = Mathf.FloorToInt(Timer_num / 60f - hour * 60);
  5. Second = Mathf.FloorToInt(Timer_num - (minute * 60));
  6. Microsecond = Mathf.FloorToInt(Timer_num * 100 - ((minute * 6000) + (second * 100)));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement