Only a button can work

I uploaded two pics.

I cannot find my fault.
Only a button in PauseController cannot work ;(

↓I set this script to button

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PauseController : MonoBehaviour {
    public void Start(){
    }
    public void Update(){
    }
    public void OnClick(){
        Debug.Log ("Pause");
    }
}

[104279-スクリーンショット-2017-10-23-212651.png|104279]

@Kiyoshi35

I just realized something. I am sorry for not seeing it sooner.

You need to set the OnClick event to runtime + editor for the button to work in the editor.

[104317-104277-スクリーンショット-2017-10-23-205745-solution.png|104317]