示例#1
0
 public void Addtime()
 {
     mseg++;
     if (mseg >= 60)
     {
         seg++;
         mseg = 0;
     }
     segText.text = seg.ToString();
     if (seg >= 60)
     {
         min++;
         seg = 0;
     }
     minText.text = min.ToString();
     MyGameSettings.getInstance().minfinal = min;
     MyGameSettings.getInstance().segfinal = seg;
 }
示例#2
0
 public void AddTime()
 {
     minText.text = MyGameSettings.getInstance().minfinal.ToString();
     segText.text = MyGameSettings.getInstance().segfinal.ToString();
 }