Exemplo n.º 1
0
    void OnDestroy()
    {
        if (toolWindow != null)
        {
            toolWindow.Close();
        }

        if (fsmSelectorWindow != null)
        {
            fsmSelectorWindow.Close();
        }

        if (fsmTemplateWindow != null)
        {
            fsmTemplateWindow.Close();
        }

        if (stateSelectorWindow != null)
        {
            stateSelectorWindow.Close();
        }

        if (actionWindow != null)
        {
            actionWindow.Close();
        }

        if (globalVariablesWindow != null)
        {
            globalVariablesWindow.Close();
        }

        if (globalEventsWindow != null)
        {
            globalEventsWindow.Close();
        }

        if (errorWindow != null)
        {
            errorWindow.Close();
        }

        if (logWindow != null)
        {
            logWindow.Close();
        }

        if (reportWindow != null)
        {
            reportWindow.Close();
        }

        if (aboutWindow != null)
        {
            aboutWindow.Close();
        }
    }
Exemplo n.º 2
0
    public void OnDestroy()
    {
        if (toolWindow != null)
        {
            toolWindow.Close();
        }

        if (fsmSelectorWindow != null)
        {
            fsmSelectorWindow.Close();
        }

        if (fsmTemplateWindow != null)
        {
            fsmTemplateWindow.Close();
        }

        if (stateSelectorWindow != null)
        {
            stateSelectorWindow.Close();
        }

        if (actionWindow != null)
        {
            actionWindow.Close();
        }

        if (errorWindow != null)
        {
            errorWindow.Close();
        }

        if (logWindow != null)
        {
            logWindow.Close();
        }

        if (aboutWindow != null)
        {
            aboutWindow.Close();
        }
    }