public void UpdateSkillSlotUIFromSkillActionDefinition(SkillActionDefinition SkillActionDefinition) { if (SkillActionDefinition != null) { this.SkillSlotUIconIGameObject.SetUIIcon(SkillActionDefinition.SkillIcon); if (SkillActionDefinition.SkillActionConstraint == SkillActionConstraint.LOW_HEALTH_ONLY) { this.SkillIconBackgroundMaterialInstance.SetColor("_BackgroundColor", SkillSlotUIGlobalConfigurationGameObject.Get().SkillSlotUIGlobalConfiguration.LowOnHealthConstrainedBackgroundColor); } } }
public void OnSkillActionChanged(SkillActionDefinition newSkillActionDefinition) { this.SkillSlotUIGameObject.UpdateSkillSlotUIFromSkillActionDefinition(newSkillActionDefinition); }