Why my UI Button don't respond?

Hello i have problem. It’s my script:

using UnityEngine;
using System.Collections;
using UnityEngine.UI;
 
public class Ataki : MonoBehaviour {
 
    public void test()
    {
        Debug.Log ("Button Clicked");
    }
}

and screen from menu:
alt text

Do you have an event system in the scene? You also need a graphics raycaster attached to the canvas. Both of these should be created automatically if you use the menu to create the button.