Exemplo n.º 1
0
            private void HandleAnimationPreventingAuras(IVisibleAura aura, bool applied)
            {
                bool wasAnimated = aurasPreventingAnimation.Count == 0;

                if (applied)
                {
                    aurasPreventingAnimation.Add(aura);
                }
                else
                {
                    aurasPreventingAnimation.Remove(aura);
                }

                bool canAnimate = aurasPreventingAnimation.Count == 0;

                if (wasAnimated != canAnimate)
                {
                    unitRenderer.UpdateAnimationState(canAnimate);
                }
            }