Unity mobile
Testing Unity on mobile, exported to Android.
​
Incorporates Singletons, Encapsulation, Inheritance, Polymorphism, Single Responsibility Principles, and Interfaces.
​
Integrates 3rd party services.
Within the level are assets for both day time and night time. A real time daylight value is being derived by retrieving the sunrise and sunset values from openweathermap.org. A float for the current day light value is being derived by normalizing the current time between these two values.
​
To prevent the daylight float being set once the sun has gone down, the function only works if the current time is between sunrise and sunset.
This value is then synced to the opacity scale of the "day time" assets, ascending until midday, descending until sunset.