Exemple #1
0
        //when the building's health is updated
        public override void OnHealthUpdated(int value, FactionEntity source)
        {
            base.OnHealthUpdated(value, source);
            CustomEvents.OnBuildingHealthUpdated(building, value, source);

            CheckState(value > 0); //check the building's state
        }