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;
}