Example #1
0
    void Awake()
    {
        if (SignInBubbles == null)
        {
            SignInBubbles = GameObject.FindGameObjectsWithTag("SignInBubbles");
        }

        foreach (GameObject SignInBubble in SignInBubbles)
        {
            SignInBubble.SetActive(false);
            SignInBubble.GetComponent <CanvasGroup>().alpha = 0;
        }

        playAgain++;
    }
Example #2
0
    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++;
    }