コード例 #1
0
    public override void OnInspectorGUI()
    {
        GUILayout.BeginHorizontal();
        if (GUILayout.Button("New Item"))
        {
            itemDataBase.CreateItem();
        }
        if (GUILayout.Button("Remove Item"))
        {
            itemDataBase.DeleteItem();
        }
        if (GUILayout.Button("<="))
        {
            itemDataBase.PrevItem();
        }
        if (GUILayout.Button("=>"))
        {
            itemDataBase.NextItem();
        }

        GUILayout.EndHorizontal();
        base.OnInspectorGUI();
    }