IEnumerator CardShow() { for (int i = 0; i < Const_int.MaxCard; i++) { if (EnemyCardScript[i].Select) { showSpace.ShowCard.Add(EnemyCard[i]); showSpace.ShowcardScripts.Add(EnemyCardScript[i]); } } for (int i = 0; ; i++) { if (showSpace.ShowCard.Count == 5) { break; } if (!EnemyCardScript[i].Select) { showSpace.ShowCard.Add(EnemyCard[i]); showSpace.ShowcardScripts.Add(EnemyCardScript[i]); } } EnemyShowSpace.SetActive(true); showSpace.ShowSetUp(gameObject); for (int i = 0; i < Const_int.ShowCard; i++) { showSpace.ShowCard[i].transform.DOMove(showSpace.ShowFrame[i].transform.position, 0.5f); } yield return(new WaitForSeconds(1f)); for (int i = 0; i < 5; i++) { showSpace.ShowCard[i].transform.DORotate(new Vector3(0f, 0f), 0.5f, RotateMode.FastBeyond360); } SE[1].PlayOneShot(SE[1].clip); showEnd = true; }
public void ShowSpaceReset() { EnemyShowSpace.SetActive(false); showSpace.ShowCard.Clear(); showSpace.ShowcardScripts.Clear(); }