Yep, Afterlife by Lucasarts. Even available on GOG at the moment. (Works on Mac and Linux, probably because it’s using DOSBox, I reckon.)
https://www.gog.com/game/afterlife
Alas, not very well-regarded.
https://www.pcgamer.com/saturday-crapshoot-afterlife/