void Awake() { if (SignInBubbles == null) { SignInBubbles = GameObject.FindGameObjectsWithTag("SignInBubbles"); } foreach (GameObject SignInBubble in SignInBubbles) { SignInBubble.SetActive(false); SignInBubble.GetComponent <CanvasGroup>().alpha = 0; } playAgain++; }
public void Replay() { if (SignInBubbles == null) { SignInBubbles = GameObject.FindGameObjectsWithTag("SignInBubbles"); } else if (playAgain > 2) { SignInBubbles = GameObject.FindGameObjectsWithTag("SignInBubbles"); foreach (GameObject SignInBubble in SignInBubbles) { SignInBubble.SetActive(false); SignInBubble.GetComponent <CanvasGroup>().alpha = 0; } } playAgain++; }