Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IEnumerator ActivateDeathSphere()
- {
- while (!hasExploded)
- {
- hasExploded = true;
- foreach (GameObject card in cards)
- {
- GameObject deathsphere = card.transform.GetChild(1).gameObject;
- deathsphere.transform.GetChild(0).GetComponent<MeshRenderer>().enabled = true;
- }
- yield return new WaitForSeconds(1f);
- foreach (GameObject card in cards)
- {
- GameObject deathsphere = card.transform.GetChild(1).gameObject;
- deathsphere.transform.GetChild(0).GetComponent<MeshRenderer>().enabled = false;
- }
- yield return new WaitForSeconds(1f);
- hasExploded = false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement