public void ToggleEffectState(EffectState effectState) { // Add EffectState only if not already in Mob effectStates if (!mob.effectStates.Any(mobEffectState => mobEffectState.GetType() == effectState.GetType())) { mob.effectStates.Add(effectState); } // else reset }
public void ToggleEffectState(EffectState effectState) { // Add EffectState only if not already in Mob effectStates if (!effectStates.Any(mobEffectState => mobEffectState.GetType() == effectState.GetType())) { effectStates.Add(effectState); } // Else reset effectStateTime else { // TODO // effectState.ResetEffectDuration(); } }