A new proof of Nishioka’s theorem in Mahler’s method