public void SetGameEvent(Fresvii.AppSteroid.Models.GameEvent gameEvent, System.Action<Fresvii.AppSteroid.Models.GameEvent> OnClick)
        {
            this.OnClickCallback = OnClick;

            this.GameEvent = gameEvent;

            image.Set(GameEvent.ImageUrl);

            eventNameText.text = this.GameEvent.Name;

            if (this.OnClickCallback == null)
            {
                this.gameObject.GetComponent<Button>().interactable = false;
            }
        }
        public void SetGameEvent(Fresvii.AppSteroid.Models.GameEvent gameEvent, System.Action<Fresvii.AppSteroid.Models.GameEvent> OnClick)
        {
            this.OnClickCallback = OnClick;

            this.GameEvent = gameEvent;

            image.Set(GameEvent.ImageUrl);

            eventNameText.text = this.GameEvent.Name;

            if (GameEvent.App != null)
            {
                appIcon.Set(GameEvent.App.IconUrl);

                appName.text = GameEvent.App.Name;
            }
        }
        IEnumerator Init()
        {
            title.text = frame.title = "";

            eventBoardPanel.SetActive(false);

            while (!AUIManager.Instance.Initialized)
            {
                yield return 1;
            }

            while (GameEvent == null)
            {
                yield return 1;
            }

            contents.gameObject.SetActive(false);

            title.text = frame.title = GameEvent.Name;

            while (frame.Animating)
            {
                yield return 1;
            }

            if (string.IsNullOrEmpty(GameEvent.ImageLargeUrl) || string.IsNullOrEmpty(GameEvent.Description) || string.IsNullOrEmpty(GameEvent.Name))
            {
                FASLeaderboard.GetEvent(GameEvent.Id, (ge, error) =>
                {
                    AUIManager.Instance.HideLoadingSpinner();

                    if (error == null)
                    {
                        contents.gameObject.SetActive(true);

                        this.GameEvent = ge;

                        SetGameEvent();

                        SetLayout();
                    }
                    else
                    {
                        Debug.LogError(error.ToString());

                        Fresvii.AppSteroid.Util.DialogManager.Instance.ShowSubmitDialog(FASText.Get("UnknownError"), FASText.Get("OK"), FASText.Get("Cancel"), FASText.Get("Close"), (del) => { });

                        Back();
                    }
                });
            }
            else
            {
                AUIManager.Instance.HideLoadingSpinner();

                contents.gameObject.SetActive(true);

                SetGameEvent();

                SetLayout();
            }

            FASLeaderboard.GetEventboardList(GameEvent.Id, OnGetEventboardList);

            FASUtility.SendPageView("pv.community.events.show", this.GameEvent.Id, System.DateTime.UtcNow, (e) =>
            {
                if (e != null)
                    Debug.LogError(e.ToString());
            });
        }