>>86
間違ってたか…すまん

ちなみにusing 〜の列に
using UnityEngine.UI;
を追加で書いておくと、

Button button = this.GetComponent<Button>();

みたいにUnityEngine.UI.を省略して書けるからオススメよ