Ejemplo n.º 1
0
 public void Show(BaseSceneBuilding building)
 {
     _building = building;
     gameObject.SetActive(true);
     ButtonPMax.GetComponentInChildren <Text>().text    = StringsTranslator.GetString("button_max");
     ButtonUpgrade.GetComponentInChildren <Text>().text = StringsTranslator.GetString("button_upgrade");
     ButtonClose.GetComponentInChildren <Text>().text   = StringsTranslator.GetString("button_close");
     RefreshLabels();
     ButtonP1Clicked();
 }
Ejemplo n.º 2
0
        public void Show(SceneStub stub)
        {
            _buildingStub = stub;
            ButtonBuild.GetComponentInChildren <Text>().text = StringsTranslator.GetString("button_build");
            ButtonClose.GetComponentInChildren <Text>().text = StringsTranslator.GetString("button_close");

            gameObject.SetActive(true);
            RefreshLabels();
            RefreshButtons();
        }