示例#1
0
        public IEnumerator TurnCard(CardPanel cardPanel)
        {
            var card   = cardPanel.transform;
            var angles = card.eulerAngles;

            yield return(Utils.Rotate(card, animationDuration / 2, animationCurve, angles, angles + Vector3.up * 90));

            cardPanel.SetRevealed(!cardPanel.IsRevealed);
            yield return(Utils.Rotate(card, animationDuration / 2, animationCurve, card.localEulerAngles, Vector3.zero));
        }