private string timerValue = "0:00:00";         
    // Use this for initialization     
    void Start()     
    {         
        InvokeRepeating("TimerUpdate", 1.0f, 0.13f);
        timerSkin = (GUISkin)Resources.Load("TimerGUISkin");    
    }

    private void TimerUpdate()   
    {         
        float minutes = Mathf.FloorToInt(Time.time / 60);        
        float seconds = Time.time % 60;         
        timerValue = string.Format("{0:00}:{1:00.00}", minutes, seconds);   
    }

相关文章:

  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
猜你喜欢
  • 2022-12-23
  • 2021-07-05
  • 2021-11-26
  • 2021-12-18
  • 2021-06-05
  • 2021-09-21
相关资源
相似解决方案