Example #1
0
 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;
     }
 }
Example #2
0
 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;
         }
     }
 }
Example #3
0
 public virtual void HandleInfectionPercentChanged(ImInfectionComponent infectionComponent)
 {
 }
Example #4
0
 virtual public void HandleInfectionPercentChanged(ImInfectionComponent infectionComponent)
 {
 }