Exemplo n.º 1
0
 private void Start()
 {
     buttonsImages[(int)currentAction].overrideSprite = PoolMaster.gui_overridingSprite;
     materialButtonImage.uvRect = ResourceType.GetTextureRect(chosenMaterialId);
     materialNameTextField.text = Localization.GetResourceName(chosenMaterialId);
     SaveSystemUI.Check(transform.root);
     SaveSystemUI.current.ingame = true;
 }
Exemplo n.º 2
0
    void Awake()
    {
        current = this;
        LocalizeButtonTitles();
        selectionFrame         = Instantiate(Resources.Load <GameObject>("Prefs/structureFrame")).transform;
        selectionFrameMaterial = selectionFrame.GetChild(0).GetComponent <MeshRenderer>().sharedMaterial;
        selectionFrame.gameObject.SetActive(false);
        iconsTexture     = Resources.Load <Texture>("Textures/Icons");
        resourcesTexture = Resources.Load <Texture>("Textures/resourcesIcons");
        buildingsTexture = Resources.Load <Texture>("Textures/buildingIcons");
        questUI          = _questUI;
        if (flyingMoneyOriginalPoint == Vector3.zero)
        {
            flyingMoneyOriginalPoint = moneyFlyingText.rectTransform.position;
        }

        SaveSystemUI.Check(transform.root);

        if (!localized)
        {
            LocalizeButtonTitles();
        }
    }
Exemplo n.º 3
0
 private void Start()
 {
     currentGraphicsLevel = QualitySettings.GetQualityLevel();
     SaveSystemUI.Check(transform.root);
 }