Problem for single click and double click

Hi guys
I need a help about a script where with one click start a method, and with double click start another method.
I saw many script where there is a double click but i’ve problem for return from double click to one.
I’ve try with click country:
Float delay = 0.3f
Float clickbuttontime = 0f
Float clicked
Bool method A
Bool method B

On mouse click:
If(clicked==1) clickedbuttontime=time.deltatime
Click++

If(clicked==1)&&(clickbuttontime2 || clickedbuttontime > 1)
Clicked=0
Clickbuttontime =0

I’ve a problem because don’t call one click method.

Than k you!!

Now work fine, this is my code.

if (Input.GetMouseButtonDown(0))
{

        //timerfordoubleclick += Time.deltaTime;
        clicked++;
        {
            if (!oneclick)
            {
                oneclick = true;
            timerfordoubleclick = Time.deltaTime;
               
                
            }
            
                //(clicked == 1) timerfordoubleclick = Time.deltaTime;

            if (clicked==1&&oneclick==true)
            {
                Debug.Log("true");
                fire();
                
                timerfordoubleclick = 0;
                StartCoroutine(coroutineA());
            }

            else if (clicked==2 && oneclick == true)
            {
                click();
                clicked = 0;
                StartCoroutine(coroutineA());
            }