Ejemplo n.º 1
0
    //TODO: Replace with a general purpose toolbar notification system
    public static void DrawMissingDataWarning()
    {
        GUI.color = Color.yellow;
        GUILayout.Label("Project Data File Missing! Grendel Framework Non-Functional.", EditorStyles.toolbarTextField);
        GUI.color = Color.white;

        GUILayout.Space(kToolbarButtonSpacer);

        if (GUILayout.Button("Click here to create a Data File for this project", EditorStyles.toolbarButton))
        {
            mProjectData = GrendelProjectDataEditor.CreateProjectDataAsset();
        }

        GUILayout.FlexibleSpace();

        LookForProjectData();
    }
Ejemplo n.º 2
0
    public static void LookForProjectData()
    {
        GrendelProjectData data = (GrendelProjectData)FindAssetOfType(typeof(GrendelProjectData));

        if (data == null)
        {
            return;
        }

        mProjectData = data;
    }