Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Adjusting a Text component at timed intervals

Discussion in 'Scripting' started by Bloodember, Oct 18, 2015.

  1. Bloodember

    Bloodember

    Joined:
    Mar 30, 2014
    Posts:
    41
    I've been racking my brain and google for hours now and I just can't figure it out. I'm probably just over thinking it.
    What I have is a day and year displayed with just numbers, the days go to 365 then restart and the year just goes up from 0. I can't figure out how to get the days to count up from 0 to 365 every say 5 seconds then restarts at 0. Then the year adjusts every 365 days. Can someone steer me in the right direction. Also I use C#.

    thanks.
     
  2. Bloodember

    Bloodember

    Joined:
    Mar 30, 2014
    Posts:
    41
    Ok, I figured it out. I used a coroutine. If anyone want's to know I can post the code.