- Home /
Question by
rodimus_strom · Jan 12, 2020 at 08:27 AM ·
adsgoogle play gamespause game
How to know if Unity Application is minimised {Mobile Devices}
Hey, I'm working on a project in which I have set notification if player forgot to set item to craft — but facing issue to determine if the app minimised. I was using OnApplicationPause, but there is an issue, It's also called if ads are running or if I check achievement{google play}. So I want to know if there is a better way to do this?
Comment
Answer by diegohartmann · Sep 10, 2020 at 08:47 PM
private void OnApplicationPause (bool paused) { if (paused) StopStuff(); else DoStuff(); }