Exemplo n.º 1
0
    public void GoToStatistics( )
    {
        PanelStats.SetActive(true);
        PanelComments.SetActive(false);

        BtnContinue.transform.GetChild(0).GetComponent <Text>( ).text = "Continue";
        BtnContinue.gameObject.SetActive(true);
        BtnPrevious.gameObject.SetActive(false);
    }
Exemplo n.º 2
0
    public void GoToComments( )
    {
        if (!PanelComments.activeInHierarchy)
        {
            PanelStats.SetActive(false);
            PanelComments.SetActive(true);

            BtnContinue.transform.GetChild(0).GetComponent <Text>( ).text = "Close";
            BtnContinue.gameObject.SetActive(true);
            BtnPrevious.gameObject.SetActive(true);
        }
        else
        {
            GameManager.Instance.CurrentGame = default(Game);
            GameObject.Destroy(gameObject);
        }
    }
Exemplo n.º 3
0
        private void getComments()
        {
            FacebookObjectCollection <Comment> comments = FacebookPost.Comments;

            PanelComments.Invoke(new Action(
                                     () =>
            {
                int y = 0;

                foreach (Comment currentComment in comments)
                {
                    UserControlComment comment = new UserControlComment(currentComment);
                    comment.Location           = new Point(0, y);
                    y += comment.Height + comment.LabelComment.Height - 20;

                    PanelComments.Controls.Add(comment);
                }

                if (FacebookPost.Comments.Count > 0)
                {
                    this.PanelWriteComment.Location = new Point(0, y + 69);
                }
            }));
        }