Must games be scripted for the specific platform or will building it automatically adapt it?

Hi. I’m completely new to Unity and I’m sure this is an extremely newbie question, so I apologize in advance :wink:

If I want to make a game in Unity for Android, can the scripts be written for mouse clicks, which will then be automatically fixed when the game is built for Android, or must the scripts be written for finger-touch right from the start?

Thank you very much.

You need to handle both: mouse clicks while developing, finger touches on the device. While mouse clicks will work on a device, using them will significantly reduce the app’s performance.

Using mouse click events is slower, using the input class isn’t you can use this is you don’t need multi touch.