// 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);

    }
예제 #3
0
    // Use this for initialization
    void Start()
    {
        playerObject = GameObject.Find("01_Player");
        playerAttributeControlData = playerObject.GetComponent <PlayerAttributeControl>();

        this.name = "05_" + researchName;
    }
    // ###########################
	// Use this for initialization
	void Start () {

        researchMasterData = this.GetComponent<ResearchMaster>();
        researchTypeCount = researchMasterData.researchDictionary.Count;
        playerAttributeControlData = GameObject.Find("01_Player").GetComponent<PlayerAttributeControl>();

        researchWindowMenuObject = GameObject.FindGameObjectWithTag("MenuResearch");

        

        GameObject childHolder = gameObject.transform.FindChild("ResearchWindowData").gameObject;

        researchTimeLabel = childHolder.transform.FindChild("ResearchTime").gameObject.GetComponent<UILabel>();

        buttonSpeedLabel = childHolder.transform.FindChild("ButtonSpeed").gameObject.transform.FindChild("Label").gameObject.GetComponent<UILabel>();
        buttonAmountLabel = childHolder.transform.FindChild("ButtonAmount").gameObject.transform.FindChild("Label").gameObject.GetComponent<UILabel>();
        buttonDrillLabel = childHolder.transform.FindChild("ButtonDrill").gameObject.transform.FindChild("Label").gameObject.GetComponent<UILabel>();
        buttonBuildCostsLabel = childHolder.transform.FindChild("ButtonBuildCosts").gameObject.transform.FindChild("Label").gameObject.GetComponent<UILabel>();
        buttonDrillPlattformLabel = childHolder.transform.FindChild("ButtonDrillPlattform").gameObject.transform.FindChild("Label").gameObject.GetComponent<UILabel>();
        buttonScan = childHolder.transform.FindChild("ButtonScan").gameObject.transform.FindChild("Label").gameObject.GetComponent<UILabel>();

        progressbarSlider = gameObject.transform.FindChild("ResearchWindowData").gameObject.transform.FindChild("ProgressBarResearch").gameObject.transform.FindChild("Control - Colored Progress Bar").gameObject.GetComponent<UISlider>();

        ResearchShow();
	} // END Start
    // ###########################
    // Use this for initialization
    void Start()
    {
        researchMasterData         = this.GetComponent <ResearchMaster>();
        researchTypeCount          = researchMasterData.researchDictionary.Count;
        playerAttributeControlData = GameObject.Find("01_Player").GetComponent <PlayerAttributeControl>();

        researchWindowMenuObject = GameObject.FindGameObjectWithTag("MenuResearch");



        GameObject childHolder = gameObject.transform.FindChild("ResearchWindowData").gameObject;

        researchTimeLabel = childHolder.transform.FindChild("ResearchTime").gameObject.GetComponent <UILabel>();

        buttonSpeedLabel          = childHolder.transform.FindChild("ButtonSpeed").gameObject.transform.FindChild("Label").gameObject.GetComponent <UILabel>();
        buttonAmountLabel         = childHolder.transform.FindChild("ButtonAmount").gameObject.transform.FindChild("Label").gameObject.GetComponent <UILabel>();
        buttonDrillLabel          = childHolder.transform.FindChild("ButtonDrill").gameObject.transform.FindChild("Label").gameObject.GetComponent <UILabel>();
        buttonBuildCostsLabel     = childHolder.transform.FindChild("ButtonBuildCosts").gameObject.transform.FindChild("Label").gameObject.GetComponent <UILabel>();
        buttonDrillPlattformLabel = childHolder.transform.FindChild("ButtonDrillPlattform").gameObject.transform.FindChild("Label").gameObject.GetComponent <UILabel>();
        buttonScan = childHolder.transform.FindChild("ButtonScan").gameObject.transform.FindChild("Label").gameObject.GetComponent <UILabel>();

        progressbarSlider = gameObject.transform.FindChild("ResearchWindowData").gameObject.transform.FindChild("ProgressBarResearch").gameObject.transform.FindChild("Control - Colored Progress Bar").gameObject.GetComponent <UISlider>();

        ResearchShow();
    }     // END Start
    // Use this for initialization
    void Awake()
    {

        researchWindowData = gameObject.transform.parent.gameObject.transform.parent.gameObject.GetComponent<ResearchWindow>();
        playerAttributeControlData = GameObject.Find("01_Player").GetComponent<PlayerAttributeControl>();

    } // END Awake
	// Use this for initialization
	void Start () {

        playerObject = GameObject.Find("01_Player");
        playerAttributeControlData = playerObject.GetComponent<PlayerAttributeControl>();

        this.name = "05_" + researchName;

	}
예제 #8
0
    // 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
예제 #9
0
    // Use this for initialization
    void Start()
    {
        playerObject         = GameObject.Find("01_Player");
        playerControlData    = playerObject.GetComponent <PlayerAttributeControl>();
        playerKeyControlData = playerObject.GetComponent <PlayerKeyboardControl>();


        cameraObject           = GameObject.Find("00_MainCamera");
        cameraShowingStuffData = cameraObject.GetComponent <ShowingStuff>();
    }
 // ---------------------------
 // Use this for initialization
 void Start()
 {
     playerObject = GameObject.Find("01_Player");
     playerAttributeControlData = playerObject.GetComponent<PlayerAttributeControl>();
     
     
     
     timeValue = Time.timeSinceLevelLoad;
     DontDestroyOnLoad(this);
 } // END Start
	// 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
예제 #12
0
    // ---------------------------
    // Use this for initialization
    void Start()
    {
        playerObject = GameObject.Find("01_Player");
        playerAttributeControlData = playerObject.GetComponent <PlayerAttributeControl>();



        timeValue = Time.timeSinceLevelLoad;
        DontDestroyOnLoad(this);
    } // END Start
예제 #13
0
    // Use this for initialization
    void Start()
    {
        playerObject      = GameObject.Find("01_Player");
        pAttributeControl = playerObject.GetComponent <PlayerAttributeControl>();

        labelMoneyObject = GameObject.FindGameObjectWithTag("Money");
        labelRpObject    = GameObject.FindGameObjectWithTag("Research");

        labelMoneyLabel = labelMoneyObject.GetComponent <UILabel>();
        labelRpLabel    = labelRpObject.GetComponent <UILabel>();
    }
	// Use this for initialization
	void Start () {

        playerObject = GameObject.Find("01_Player");
        playerControlData = playerObject.GetComponent<PlayerAttributeControl>();
        playerKeyControlData = playerObject.GetComponent<PlayerKeyboardControl>();


        cameraObject = GameObject.Find("00_MainCamera");
        cameraShowingStuffData = cameraObject.GetComponent<ShowingStuff>();


	}
예제 #15
0
	// Use this for initialization
	void Start () {

        playerObject = GameObject.Find("01_Player");
        pAttributeControl = playerObject.GetComponent<PlayerAttributeControl>();

        labelMoneyObject = GameObject.FindGameObjectWithTag("Money");
        labelRpObject = GameObject.FindGameObjectWithTag("Research");

        labelMoneyLabel = labelMoneyObject.GetComponent<UILabel>();
        labelRpLabel = labelRpObject.GetComponent<UILabel>();


	}
    // 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 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>();
 }
 // Use this for initialization
 void Awake()
 {
     researchWindowData         = gameObject.transform.parent.gameObject.transform.parent.gameObject.GetComponent <ResearchWindow>();
     playerAttributeControlData = GameObject.Find("01_Player").GetComponent <PlayerAttributeControl>();
 } // END Awake
예제 #20
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