Exemplo n.º 1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        SettingsMenu myScript = (SettingsMenu)target;

        if (GUILayout.Button("Compute settings values"))
        {
            myScript.ComputeSettings();
        }

        if (GUILayout.Button("Display all saved settings values"))
        {
            myScript.DisplaySettingsValues();
        }

        //if (GUILayout.Button("Assign saved settings values"))
        //{
        //    myScript.AssignSavedValuesInSettings();
        //}

        if (GUILayout.Button("Link Settings values to Game"))
        {
            myScript.ModifyPlayerPrefsValues();
        }
    }