Function on button click not working

I am used to create functions and associate it to a button. But I dont know why in this case it isnt working. What I have:

  • A Character with a Character Controller on it
  • Another script with a Jump function
  • The function is triggered in Fire3 and it is working
  • I duplicated this function removing the condition to trigger on Fire3
    public void Dash()
{
            Debug.Log("Dash");
            _velocity += Vector3.Scale(transform.forward, DashDistance * new Vector3((Mathf.Log(1f / (Time.deltaTime * Drag.x + 1)) / -Time.deltaTime), 0, (Mathf.Log(1f / (Time.deltaTime * Drag.z + 1)) / -Time.deltaTime)));

    }

attached it to a button but it does nothing. Any clues? Thanks

update

just for testing i created the following function and it works

    public void testabc()
    {
        Debug.Log("test");
    }

Resolved. I had another function blocking it to run. Sorry and Thanks

You don’t seem to have an opening “{” on the Dash method…

Was just a typo copying the script here… but it acctually has

Solved, thanks