Esempio n. 1
0
 private void setBestTime()
 {
     if (SaveAndLoad.getMap(map, level) != 0)
     {
         bestTime.text = MyDataTimeConventer.getTime(SaveAndLoad.getMap(map, level));
     }
     else
     {
         bestTime.text = "---";
     }
 }
Esempio n. 2
0
    public void updateTime()
    {
        if (start && !GameInfo.Instance.End)
        {
            currTime = Time.time - startTime;

            text.text = MyDataTimeConventer.getTime(currTime);
        }
        else if (GameInfo.Instance.End && !save)
        {
            GameInfo.Instance.Time = currTime;
            save = true;
        }
    }
Esempio n. 3
0
 private void setTime(bool finish)
 {
     if (finish)
     {
         currTime.text = MyDataTimeConventer.getTime(GameInfo.Instance.Time);
         if (GameInfo.Instance.Time < SaveAndLoad.getMap(map, level) || SaveAndLoad.getMap(map, level) == 0)
         {
             StartCoroutine(playRecord());
         }
     }
     else
     {
         currTime.text = "---";
     }
 }