コード例 #1
0
 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);
         }
     }
 }
コード例 #2
0
 public void OnSkillActionChanged(SkillActionDefinition newSkillActionDefinition)
 {
     this.SkillSlotUIGameObject.UpdateSkillSlotUIFromSkillActionDefinition(newSkillActionDefinition);
 }