예제 #1
0
    private IEnumerator MenuDisappear()
    {
        BackButton.Disappear();
        yield return(new WaitForSeconds(0.1f));

        RegisterButton.Disappear();
        yield return(new WaitForSeconds(0.1f));

        CloseButton.Disappear();

        int[] list = new int[] { 3, 7, 11, 10, 9, 8, 4, 0, 1, 2, 6, 5 };
        for (int i = 0; i < MenuButton.NUM_BUTTONS; i++)
        {
            yield return(new WaitForSeconds(0.04f));

            ReplyButtons[list[i]].Disappear();
        }

        yield return(new WaitForSeconds(0.6f));

        gameObject.SetActive(false);
        Chatroom.Appear();
    }