As an idle game you probably want to add run while out of focus, there's just a checkbox for it in unity. Can also calculate the time out of focus and use it for a time bank idle system.