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; }
public void AddTime() { minText.text = MyGameSettings.getInstance().minfinal.ToString(); segText.text = MyGameSettings.getInstance().segfinal.ToString(); }