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
    }
Esempio n. 2
0
 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();
     }
 }