SDSS-IV MaNGA : inside-out versus outside-in quenching of galaxies in different local environments