/// <summary> /// /// Obtain a particular status effect colour /// /// </summary> public Color GetStatusEffectColour(Unit.StatusEffects statusEffect) { var statusEffectColour = new Color(); statusEffectColour = statusEffectColours.FirstOrDefault(x => x.statusEffect == statusEffect).effectColour; if (statusEffectColour == null) { statusEffectColour = new Color(); } return(statusEffectColour); }
/// <summary> /// /// Initialises a status effect indicator on a unit counter /// /// </summary> public void InitIndicator(Unit.StatusEffects _statusEffect) { statusEffect = _statusEffect; statusColour.color = GameManager.instance.colourManager.GetStatusEffectColour(statusEffect); }