I want to do a function when screen sleep on android
Have a function for this ?
Like:
if(Screen.Sleep == true)
{
Do Something
}
Any way to check this ?
I want to do a function when screen sleep on android
Have a function for this ?
Like:
if(Screen.Sleep == true)
{
Do Something
}
Any way to check this ?
I think you can use OnApplicationPause to detect if the game has been paused (or slept)
There is also, OnApplicationFocus for the opposite