예제 #1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();
        GUILayout.Space(5);

        MessageDisplay script = (MessageDisplay)target;

        if (GUILayout.Button("Show display"))
        {
            script.ShowDisplay();
        }
        if (GUILayout.Button("Hide display"))
        {
            script.HideDisplay();
        }
    }