- Home /
Question by
takochako987 · Oct 17, 2017 at 09:07 PM ·
timerealtimedaycycledaynight
Realtime daylight cycle?
I'm looking for a way to create a daylight cycle like the one in Animal Crossing, where the time in game is the same as the system time. Does anyone know how I would go about doing/starting this?
Comment
Answer by Kishotta · Oct 18, 2017 at 02:48 AM
You can get the system's current local time using DateTime.Now.
You'll need to add using System;
to your script imports, if it's not already there.