- Home /
 
 
               Question by 
               davidflynn2 · Nov 26, 2012 at 08:31 PM · 
                c#render  
              
 
              Render only on specific times of year
Is there any way I can make a script that will turn off the render componet of some of my holiday itmes and kick them on to render only during the week of that holiday?
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by code-blep · Nov 26, 2012 at 08:34 PM
Hi David,
There is a great answer here: http://answers.unity3d.com/questions/9862/read-time-and-date.html
All you have to do is use an If statement to see if the date is right, and when it is, render the relevant objects.
Hope it helps
Paul
Your answer
 
             Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Converting to C# 1 Answer
Mouse Look is over riding my controller 1 Answer
Why does my slide out menu not work when i translate from JS to C#? 1 Answer
Convert js to c# 2 Answers