control click event

hello everyone.
i have this situation.
I’m making an interactive child’s book, its’ pretty simple.
the screen is an action bar and the page.
in the bar i have two arrows, left and right.
the point is that when i press on them, the page change.

i need a script to control where i made click, left-arrow or right.

that’s it.thanks, and sorry my English.

from the reference guide

Input.GetMouseButton Returns whether the given mouse button is held down.

Input.GetMouseButtonDown Returns true during the frame the user pressed the given mouse button.

Input.GetMouseButtonUp Returns true during the frame the user releases the given mouse button.

Put that into one of your arrows… so if you have an Arrow script:

public class Example : MonoBehaviour {

void Update() {
    if (Input.GetMouseButtonDown(1)){
        Debug.Log("Pressed right click.");
        //do other stuff here, like flip a page.... 
    }
}

}