public override void HandleInfectionPercentChanged(ImInfectionComponent infectionComponent) { base.HandleInfectionPercentChanged(infectionComponent); RadialWipeSpriteComponents()[0].sprite.percentage = infectionComponent.infectionPercent; if (infectionComponent.infectionPercent == 1) { ImOrgan organ = CorrespondingOrganInOrganLayer(WTImmunity.instance.organLayer); if (organ != null) organ.SpriteComponents()[0].sprite.color = Color.red; } }
override public void HandleInfectionPercentChanged(ImInfectionComponent infectionComponent) { base.HandleInfectionPercentChanged(infectionComponent); RadialWipeSpriteComponents()[0].sprite.percentage = infectionComponent.infectionPercent; if (infectionComponent.infectionPercent == 1) { ImOrgan organ = CorrespondingOrganInOrganLayer(WTImmunity.instance.organLayer); if (organ != null) { organ.SpriteComponents()[0].sprite.color = Color.red; } } }
public virtual void HandleInfectionPercentChanged(ImInfectionComponent infectionComponent) { }
virtual public void HandleInfectionPercentChanged(ImInfectionComponent infectionComponent) { }