Give point on button click

Hello,

I want people to get 1 point when they click on a button.

So on top of the android app I have:
Current ammount

And below that:
Click to get a point

I have no idea how to start, anyone knows a tutorial?

Thanks

What is the player clicking? A button? An image/sprite? Do you have any code?

If the player is clicking a button you can do some thing like this

using UnityEngine;
using UnityEngine.UI;
using System.Collections;

public class ButtonClickScript : MonoBehaviour
{
    public Button button;
    public Text text;
    
    public int currentPoints = 0;
    
    
    public void ClickButton()
    {
        if (button != null)
        {
            currentPoints++;
            if (text != null)
            {
                text.text = "Current Points" + currentPoints.ToString();
            }
        }
    }
}

The ClickButton is set up as an event. Here is a little demo of how to do this.

To learn more about this see the Unity Button docs and these tutorials

  1. Button Tutorial 1
  2. Button Tutorial 2
  3. Button Tutorial 3

Now if the player is clicking an image/sprite then you first need to make sure that there is a collider on the game object that has the image/sprite (most likely a Boxcollider2D). You can then do something lie this

using UnityEngine;
using System.Collections;

public class ImageClickScript : MonoBehaviour
{
    public Text text;
    public int currentPoints = 0;

    void OnMouseDown ()
    {
        currentPoints++;
        if (text != null)
        {
            text.text = "Current Points" + currentPoints.ToString();
        }
    }
}