Beispiel #1
0
    void Update()
    {
        // Setting up progressbar, and that it will update each frame
        progressBar = GetComponent <RectTransform>();

        if (gameManager.getBuildingCatalog().getBuildingLastClicked() != null)
        {
            progressBar.sizeDelta = new Vector2(buildingAttributes.getProductionProgress(), 26.4F);
        }
    }