Ejemplo n.º 1
0
        private void FacilityChanged()
        {
            CompFacility             compFacility             = this.TryGetComp <CompFacility>();
            CompAffectedByFacilities compAffectedByFacilities = this.TryGetComp <CompAffectedByFacilities>();

            compFacility?.Notify_ThingChanged();
            compAffectedByFacilities?.Notify_ThingChanged();
        }
Ejemplo n.º 2
0
        private void FacilityChanged()
        {
            CompFacility             compFacility             = this.TryGetComp <CompFacility>();
            CompAffectedByFacilities compAffectedByFacilities = this.TryGetComp <CompAffectedByFacilities>();

            if (compFacility != null)
            {
                compFacility.Notify_ThingChanged();
            }
            if (compAffectedByFacilities != null)
            {
                compAffectedByFacilities.Notify_ThingChanged();
            }
        }