How? Turn it into minutes when reaching value 60(seconds)?
If you want to convert the Time.time seconds count to minutes and seconds, you can do this:
var minutes: int = Time.time/60; // minutes is the integer part of seconds/60 var seconds: int = Time.time%60; // % is the "modulo" or "remainder" operator
And pay attention to what @Grady said: “give me” and “write for me” are the magic words for disaster in Unity Answers - most guys around here get really pissed off with questions containing these unlucky words, and downvote you like machine guns without mercy!
Try something like this:
var newTime = 0;
var timeInMinutes = 0;
function Update(){
if(Time.time - newTime == 60){
timeInMinutes ++;
newTime = Time.time;
}
}
No guarantees, as I quickly made it up and haven’t tested it, but it should work…
But just remember, it’s probably best not to start demanding people to write you scripts, as you lose karma, and people won’t answer you… It can always be good to play around and have a try and discover things for yourself!!!
Hope this helps you!
-Grady
Check this: