// Use this for initialization
    void Start()
    {
        factoryWindowMenuObject = GameObject.FindGameObjectWithTag("MenuFactory");
        taskWindowObject        = factoryWindowMenuObject.transform.FindChild("TaskListWindow").gameObject;
        storageWindowData       = GetComponent <StorageWindow>();
        drillMasterData         = GetComponent <DrillMaster>();
        scanMasterData          = GetComponent <ScanMaster>();
        taskWaitListWindowData  = GetComponent <TaskWaitListWindow>();
        drillDictionary         = drillMasterData.drillDictionary;
        scanDictionary          = scanMasterData.scanDictionary;
        progressSlider          = factoryWindowMenuObject.transform.FindChild("ProgressBarBuild").gameObject.GetComponent <UISlider>();

        GameObject drillDataObject = transform.FindChild("FactoryWindowData").gameObject.transform.FindChild("DrillData").gameObject;

        drillLabelType  = drillDataObject.transform.FindChild("LabelDrillType").gameObject.GetComponent <UILabel>();
        drillLabelValue = drillDataObject.transform.FindChild("LabelDrillValue").gameObject.GetComponent <UILabel>();

        GameObject scanDataObject = transform.FindChild("FactoryWindowData").gameObject.transform.FindChild("ScanData").gameObject;

        scanLabelType  = scanDataObject.transform.FindChild("LabelScanType").gameObject.GetComponent <UILabel>();
        scanLabelValue = scanDataObject.transform.FindChild("LabelScanValue").gameObject.GetComponent <UILabel>();

        GameObject pipesDataObject = transform.FindChild("FactoryWindowData").gameObject.transform.FindChild("PipesData").gameObject;

        //drillLabelType = drillDataObject.transform.FindChild("LabelDrillType").gameObject.GetComponent<UILabel>();
        pipesValue = pipesDataObject.transform.FindChild("LabelPipesValue").gameObject.GetComponent <UILabel>();

        GameObject kostenDataObject = transform.FindChild("FactoryWindowData").gameObject.transform.FindChild("LabelKosten").gameObject;

        //drillLabelType = drillDataObject.transform.FindChild("LabelDrillType").gameObject.GetComponent<UILabel>();
        costsValue = kostenDataObject.transform.FindChild("LabelKostenValue").gameObject.GetComponent <UILabel>();

        FactoryShow();
        FactoryWindowReload();
    } // END Start
    // Use this for initialization
    void Start()
    {



        factoryWindowMenuObject = GameObject.FindGameObjectWithTag("MenuFactory");
        taskWindowObject = factoryWindowMenuObject.transform.FindChild("TaskListWindow").gameObject;
        storageWindowData = GetComponent<StorageWindow>();
        drillMasterData = GetComponent<DrillMaster>();
        scanMasterData = GetComponent<ScanMaster>();
        taskWaitListWindowData = GetComponent<TaskWaitListWindow>();
        drillDictionary = drillMasterData.drillDictionary;
        scanDictionary = scanMasterData.scanDictionary;
        progressSlider = factoryWindowMenuObject.transform.FindChild("ProgressBarBuild").gameObject.GetComponent<UISlider>();

        GameObject drillDataObject = transform.FindChild("FactoryWindowData").gameObject.transform.FindChild("DrillData").gameObject;
        drillLabelType = drillDataObject.transform.FindChild("LabelDrillType").gameObject.GetComponent<UILabel>();
        drillLabelValue = drillDataObject.transform.FindChild("LabelDrillValue").gameObject.GetComponent<UILabel>();

        GameObject scanDataObject = transform.FindChild("FactoryWindowData").gameObject.transform.FindChild("ScanData").gameObject;
        scanLabelType = scanDataObject.transform.FindChild("LabelScanType").gameObject.GetComponent<UILabel>();
        scanLabelValue = scanDataObject.transform.FindChild("LabelScanValue").gameObject.GetComponent<UILabel>();

        GameObject pipesDataObject = transform.FindChild("FactoryWindowData").gameObject.transform.FindChild("PipesData").gameObject;
        //drillLabelType = drillDataObject.transform.FindChild("LabelDrillType").gameObject.GetComponent<UILabel>();
        pipesValue = pipesDataObject.transform.FindChild("LabelPipesValue").gameObject.GetComponent<UILabel>();

        GameObject kostenDataObject = transform.FindChild("FactoryWindowData").gameObject.transform.FindChild("LabelKosten").gameObject;
        //drillLabelType = drillDataObject.transform.FindChild("LabelDrillType").gameObject.GetComponent<UILabel>();
        costsValue = kostenDataObject.transform.FindChild("LabelKostenValue").gameObject.GetComponent<UILabel>();

        FactoryShow();
        FactoryWindowReload();
    } // END Start
 // Use this for initialization
 void Awake()
 {
     factoryWindowData          = GameObject.Find("00_GuiStuff").GetComponent <FactoryWindow>();
     playerAttributeControlData = GameObject.Find("01_Player").GetComponent <PlayerAttributeControl>();
     taskWaitListWindowData     = GameObject.Find("00_GuiStuff").GetComponent <TaskWaitListWindow>();
 }
	// Use this for initialization
	void Awake () {

        factoryWindowData = GameObject.Find("00_GuiStuff").GetComponent<FactoryWindow>();
        playerAttributeControlData = GameObject.Find("01_Player").GetComponent<PlayerAttributeControl>();
        taskWaitListWindowData = GameObject.Find("00_GuiStuff").GetComponent<TaskWaitListWindow>();
	}