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

        GunController gunScript = (GunController)target;

        if (GUILayout.Button("Apply Settings"))
        {
            gunScript.ApplySettings();
        }
    }