private IEnumerator PassTime() { while (true) { currentTime.AddMinutes(1); yield return(new WaitForSeconds(rateOfTime)); } }
//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); }