コード例 #1
0
 private IEnumerator PassTime()
 {
     while (true)
     {
         currentTime.AddMinutes(1);
         yield return(new WaitForSeconds(rateOfTime));
     }
 }
コード例 #2
0
 //Everything in here is in Seconds or based on. Careful if you redo this.
 private void UpdateTime()
 {
     if (modifiedSeconds > Counter)
     {
         Counter += 60;
         mGameTime.AddMinutes(1);
     }
     modifiedSeconds = (Time.time * TimeModifier);
     mGameTime.UpdateTime();
     Debug.Log(mGameTime);
 }