Ejemplo n.º 1
0
        public void AddCardAnimation(Card card, Vector3 position, Quaternion rotation)
        {
            CardAnimation ca = new CardAnimation(card, position, rotation);

            cardAnimations.Enqueue(ca);
            working = true;
        }
Ejemplo n.º 2
0
        void NextAnimation()
        {
            currentCardAnimation = null;

            if (cardAnimations.Count > 0)
            {
                CardAnimation ca = cardAnimations.Dequeue();
                currentCardAnimation = ca;
            }
            else
            {
                if (working)
                {
                    working = false;
                    //OnAllAnimationsFinished.Invoke();
                }
            }
        }