Example #1
0
        public BankUIData(SignalBus signalBus, MonoBehaviour monoBehaviour, ref UIData uiData, Building bank)
        {
            this.uiData = uiData;
            this.proceduralUiElements = new ProceduralUiElements();
            this.bank = bank as T;

            this.signalBus     = signalBus;
            this.monoBehaviour = monoBehaviour;
        }
Example #2
0
        public BuildingUIData(SignalBus signalBus, MonoBehaviour monoBehaviour, Container.Cloud cloud, ref UIData uiData, Building office)
        {
            this.signalBus            = signalBus;
            this.cloud                = cloud;
            this.uiData               = uiData;
            this.proceduralUiElements = new ProceduralUiElements();
            this.building             = office as T;

            cloud.Materials.ForEach(material =>
            {
                if (material.name == "progressBar")
                {
                    projectButtonMaterial = material;
                }
            });
            this.monoBehaviour = monoBehaviour;
        }