Exemplo n.º 1
0
        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\"}");
        }
Exemplo n.º 2
0
 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;
         }
     }
 }
Exemplo n.º 3
0
 public void updateRunTime(Clock c, Clock.Stage s, ulong counter, float clockTime)
 {
     runTime.text = c.UnitConversion();
 }
Exemplo n.º 4
0
 public void tick(Clock c, Clock.Stage s, ulong counter, float clockTime)
 {
     Debug.Log(clockTime);
 }