I have to show complete 24 hours cycle in Unity3d Scene. Where different kind of task will be executed in different Times.
- at 2pm I have to move a car,
- at 6pm An Aeroplane will land on airport
- at 07:07pm I have to open the door of Market's Buildings
- and so on different task/works execution at different timing.
Now, I have some basic animation e.g., car, Aeroplane and door etc.,. Now I am confuse that how to play and stop my animation according to the time. And time can also be changed manually using GUI. If currently 6pm (animation working) then user can switch to 8am to view 8am time's animation (or code execution). And User can also fast the timing to view complete hours in a single minutes or in an hour.
I can use if/else in Update Events but I guess this is not the right way to do and will be very difficult if I require to show significant number of works in different time duration (which means significant number of if/else statements). Just like below
...//so on, tedious way
...//and also not possible if time require between the hours, suppose 06:06pm
What to do ? How to handle this?