unity how to connect the phone and check the output on runtime.

How we can connect a phone with the unity so that message is produced on the console when i touch the phone

Install Unity Remote on your device and you can get your mobile phone work as a remote. just start unity remote on your -phone and make play on pc unity. so that it will be working like a remote.