Esempio n. 1
0
    public void Dispose()
    {
#if UNITY_EDITOR
        if (end && GUILayout.Button("", EditorUtil.TipButton))
        {
            MessageBoxWindow.ShowWindow(true, tip);
        }
#endif

        GUILayout.EndHorizontal();
    }
Esempio n. 2
0
    public AutoEditorTipButton(string tip, bool end = true)
    {
        this.tip = tip;
        this.end = end;
        GUILayout.BeginHorizontal();
#if UNITY_EDITOR
        if (!end && GUILayout.Button("", EditorUtil.TipButton))
        {
            MessageBoxWindow.ShowWindow(true, tip);
        }
#endif
    }