Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink
Go down
Member [Lv. 0]
Member [Lv. 0]
Posts : 1
Points : 556
Rep : 0
Join date : 2017-01-15
View user profile

Triggering animations using time and date

on Sun Jan 15, 2017 4:22 am
Hi All, first of all please bear with me if i ask any really obvious questions, i'm quite new to Unity and coding in general!

I have a cube that i can get to change from white to a pulsing yellow using an animation. I've also seen colliders used to trigger certain animations, Is it possible to trigger this animation using a time and date is set on an internal calendar/ computer calendar?

Thanks in advance Smile
Member [Lv. 1]
Member [Lv. 1]
Posts : 2
Points : 507
Rep : 0
Join date : 2017-03-04
View user profile

Re: Triggering animations using time and date

on Sun Apr 09, 2017 11:39 am
The function "System.DateTime.Now" give the date and the time of the realtime clock.
Then you have just to compare with a defined date/time to trigger an animation.
Back to top
Permissions in this forum:
You cannot reply to topics in this forum