Ejemplo n.º 1
0
	void OnGUI()
	{
	    HEU_SessionBase sessionBase = HEU_SessionManager.GetDefaultSession();

	    if (sessionBase == null)
	    {
		return;
	    }

	    SetupUI();

	    if (_outputLogUIComponent != null)
	    {
		float setHeight = this.position.size.y - 60;
		_outputLogUIComponent.SetHeight(setHeight);
		_outputLogUIComponent.OnGUI(sessionBase.GetCookLogString());
	    }
	}
	void OnGUI()
	{
	    HEU_SessionBase sessionBase = HEU_SessionManager.GetDefaultSession();

	    if (sessionBase == null)
	    {
		return;
	    }

	    SetupUI();

	    if (_outputLogUIComponent != null)
	    {
		float setHeight = this.position.size.y - _bottomPadding;
		_outputLogUIComponent.SetHeight(setHeight);
		_outputLogUIComponent.OnGUI(HEU_CookLogs.Instance.GetCookLogString());
	    }


	    if (GUILayout.Button("Delete Log File"))
	    {
		HEU_CookLogs.Instance.DeleteCookingFile();
	    }
	}