replace Input.GetKey for mobile input

Hi,

im new with unity, i just bought a complete project FPS games for PC and i want to convert it to mobile device. the process look like this, when i touch a button (2d toolkit), it will then send “something” to the script. i will then replace the Input.GetKey in the script with “something”

what is “something” called? is it variable? or function? or method?

how do i send this event to this script. sorry im really new to programming.

void Update (){

	// Make sure the user pressed the mouse down
	if(!Input.GetKey(KeyCode.Z)){
		return;
	}

You may want to use the GUI system to make a Button which would trigger whatever behaviour you want. Or you can put an OnMouseDown on an object and use that as the trigger. Or you can use the Input.touches stuff to look for touch information. So many options! Up to you how you want to interact with the app.