ControlWindow.drawDestroyInitComponents C# (CSharp) Method

drawDestroyInitComponents() private method

private drawDestroyInitComponents ( ) : void
return void
    private void drawDestroyInitComponents()
    {
        if (meshRender.isAwesomiumInit)
        {
            if (GUILayout.Button("Destroy"))
            {
                meshRender.DestroyAwesomiumWindow();
            }
        }
        else
        {
            if (GUILayout.Button("init"))
            {
                try
                {
                    int aweWidth = int.Parse(textWidth);
                    int aweHeight = int.Parse(textHeight);
                    meshRender.InitAwesomium(aweWidth,aweHeight);
                }
                catch (System.Exception)
                {
                    Debug.Log("Error parsing width and height");
                }
            }
        }
    }