public void updateManMenuRunTime(Clock c, Clock.Stage s, ulong counter, float clockTime) { string time = c.UnitConversion(); string[] hour = time.Split('时'); string[] min = hour[1].Split('分'); string[] seconds = min[1].Split('秒'); string message = "{\"Action\":\"TimeCallback\",\"param1\":\"" + hour[0] + "\",\"param2\":\"" + min[0] + "\",\"param3\":\"" + seconds[0] + "\"}"; H5View.GetComponent <UICommunicationsScript>().UnityToWeb(message); //Debug.Log(time); //UnityToWeb("{\"Action\":\"TimeCallback\",\"param1\":\"result_hour\",\"param2\":\"result_miniter\",\"param3\":\"result_seconds\"}"); }
public void tick(Clock c, Clock.Stage s, ulong counter, float clockTime) { if (currentSeconds > 0 && !isPause) { currentSeconds--; setTimeOfText(); } else if (currentSeconds == 0) { if (timeEndEvent != null) { timeEndEvent(); currentSeconds = -1; } } }
public void updateRunTime(Clock c, Clock.Stage s, ulong counter, float clockTime) { runTime.text = c.UnitConversion(); }
public void tick(Clock c, Clock.Stage s, ulong counter, float clockTime) { Debug.Log(clockTime); }