// 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()
    {

        storageWindowData = gameObject.transform.parent.gameObject.transform.parent.gameObject.transform.parent.gameObject.GetComponent<StorageWindow>();
        playerAttributeControlData = GameObject.Find("01_Player").GetComponent<PlayerAttributeControl>();
        storageWindowSecondData = gameObject.transform.parent.gameObject.transform.parent.gameObject.transform.parent.gameObject.GetComponent<StorageWindow>();
    } // END Start
    // Use this for initialization
    void Start()
    {
        tradingPriceTimer = tradingPriceTimerIntervall;

        //foreach (int i in Enum.GetValues(typeof(BODENARTEN)))
        for (int i = 0; i < Enum.GetValues(typeof(BODENARTEN)).Length; i++)
        {
            changesUP[(BODENARTEN)i] = 0;
            changesDOWN[(BODENARTEN)i] = 0;
        }


        storageWindow = storageWindowObject.GetComponent<StorageWindow>();
        playerAttributeControl = playerAttributeControlObject.GetComponent<PlayerAttributeControl>();


        tradingPrices[BODENARTEN.Kohle] = InitValues[BODENARTEN.Kohle] = 100;
        tradingPrices[BODENARTEN.Erz] = InitValues[BODENARTEN.Erz] = 200;
        tradingPrices[BODENARTEN.Gold] = InitValues[BODENARTEN.Gold] = 300;
        tradingPrices[BODENARTEN.Oel] = InitValues[BODENARTEN.Oel] = 400;
        tradingPrices[BODENARTEN.Diamant] = InitValues[BODENARTEN.Diamant] = 500;

        //fixedStorage = new Dictionary<BODENARTEN, int>(storageWindow.bodenData);

    }
	// Use this for initialization
	void Start () {
        
        playerAttributeControlData = gameObject.GetComponent<PlayerAttributeControl>();

        researchObject = GameObject.Find("00_GuiStuff");
        menuResearchWindowData = researchObject.GetComponent<ResearchWindow>();
        menuStorageWindowData = researchObject.GetComponent<StorageWindow>();
        menuFactoryWindowData = researchObject.GetComponent<FactoryWindow>();

	} // END Start
Beispiel #5
0
 void Start()
 {
     //%
     storageWindow = GUIStuff.GetComponent <StorageWindow>();
 }
 void Start()
 {
     //%
     storageWindow = GUIStuff.GetComponent<StorageWindow>();
 }
 void Start()
 {
     buildingInterfaceObject = GameObject.Find("BuildingInterface");
     buildingInterface       = buildingInterfaceObject.GetComponent <BuildingInterface>();
     storageWindow           = buildingInterface.storageWindow;
 }
 void Start()
 {
     buildingInterfaceObject = GameObject.Find("BuildingInterface");
     buildingInterface = buildingInterfaceObject.GetComponent<BuildingInterface>();
     storageWindow = buildingInterface.storageWindow;
 }
Beispiel #9
0
 // Use this for initialization
 void Awake()
 {
     storageWindowData          = gameObject.transform.parent.gameObject.transform.parent.gameObject.transform.parent.gameObject.GetComponent <StorageWindow>();
     playerAttributeControlData = GameObject.Find("01_Player").GetComponent <PlayerAttributeControl>();
     storageWindowSecondData    = gameObject.transform.parent.gameObject.transform.parent.gameObject.transform.parent.gameObject.GetComponent <StorageWindow>();
 } // END Start