/// <summary> /// カード実体を生成し、配るアニメーションを再生する。 /// </summary> /// <param name="card"></param> /// <param name="dealTarget"></param> /// <param name="isReverse"></param> /// <returns>実体</returns> public CardInstance DealCardAnime(Card card, BlackJackPlayer dealTarget, bool isReverse) { Vector3 rotate = new Vector3(0.0f, 0.0f, 170.0f); if (isReverse) { rotate.y = 180.0f; rotate.z = 190.0f; } GameObject cardInstanceObject = Instantiate(cardPrefab, CardInitPoint.position, Quaternion.Euler(rotate), transform); CardInstance cardInstance = cardInstanceObject.GetComponent <CardInstance>(); cardInstance.SetCardInfo(card); cardInstances.Add(cardInstanceObject); cardInstance.CardMove(dealTarget.GetDealPosition()); return(cardInstance); }