• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Fresvii类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Fresvii的典型用法代码示例。如果您正苦于以下问题:C# Fresvii类的具体用法?C# Fresvii怎么用?C# Fresvii使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Fresvii类属于命名空间,在下文中一共展示了Fresvii类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: AddSelectedFriend

        public void AddSelectedFriend(Fresvii.AppSteroid.Models.User user, Action<bool> callback)
        {
            foreach (Fresvii.AppSteroid.Models.User _user in selectedUsers)
            {
                if (_user.Id == user.Id)
                {
                    return;
                }
            }

            if (selectedUsers.Count >= SelectableMaxCount)
            {
                string tooMuch = FresviiGUIText.Get("SelectFrindsOvered").Replace("%num", SelectableMaxCount.ToString());

                Fresvii.AppSteroid.Util.DialogManager.Instance.ShowSubmitDialog(tooMuch, FresviiGUIText.Get("OK"), FresviiGUIText.Get("OK"), FresviiGUIText.Get("OK"), (del) => { });

                if (callback != null)
                {
                    callback(false);
                }
            }
            else
            {
                selectedUsers.Add(user);

                if (callback != null)
                {
                    callback(true);
                }
            }

            selectMemberTop.SetSubmit((selectedUsers.Count > 0));
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:33,代码来源:FresviiGUISelectFriends.cs


示例2: OnGetStickerSetList

        void OnGetStickerSetList(IList<Fresvii.AppSteroid.Models.StickerSet> stickerSets, Fresvii.AppSteroid.Models.ListMeta meta, Fresvii.AppSteroid.Models.Error error)
        {
            if (this == null)
            {
                return;
            }

            if (this.enabled == false)
            {
                return;
            }

            if (error != null)
            {
                if (FASSettings.Instance.logLevel <= FAS.LogLevels.Error)
                {
                    Debug.LogError(error.ToString());
                }

                return;
            }

            if (this.listMeta == null || this.listMeta.CurrentPage != 0)
            {
                this.listMeta = meta;
            }

            foreach (var stickerSet in stickerSets)
            {
                UpdateStickerSet(stickerSet);
            }

            pullReflesh.PullRefleshCompleted();
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:34,代码来源:AUIStickerSetSelector.cs


示例3: SetEventboard

        public void SetEventboard(Fresvii.AppSteroid.Models.Eventboard eventboard, AUIGameEvent auiGameEvent)
        {
            this.auiGameEvent = auiGameEvent;

            this.Eventboard = eventboard;

            this.textTitle.text = Eventboard.Leaderboard.Name;

            this.textRankingScore.text = Eventboard.Leaderboard.Description;

            if (string.IsNullOrEmpty(Eventboard.Leaderboard.IconUrl))
            {
                FASLeaderboard.GetLeaderboard(Eventboard.Leaderboard.IconUrl, (leaderboard, error) =>
                {
                    if (error == null)
                    {
                        image.Set(leaderboard.IconUrl);
                    }
                });
            }
            else
            {
                image.Set(Eventboard.Leaderboard.IconUrl);
            }
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:25,代码来源:AUIGameEventboardCell.cs


示例4: GoToEventboard

        public void GoToEventboard(Fresvii.AppSteroid.Models.Eventboard eventboard)
        {
            if (frame.Animating) return;

            RectTransform rectTransform = GetComponent<RectTransform>();

            var auiEventboard = ((GameObject)Instantiate(prfbEventboard)).GetComponent<AUIEventboard>();

            auiEventboard.SetEventboard(eventboard);

            auiEventboard.transform.SetParent(transform.parent, false);

            auiEventboard.transform.SetAsLastSibling();

            auiEventboard.parentFrameTween = this.frame;

            //auiEventboard.backButtonText.text = title.text;

            auiEventboard.frame.backFrame = this.frame;

            auiEventboard.frame.Animate(new Vector2(rectTransform.rect.width, 0f), Vector2.zero, () => { });

            this.frame.Animate(Vector2.zero, new Vector2(-rectTransform.rect.width * 0.5f, 0f), () =>
            {
                this.gameObject.SetActive(false);
            });
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:27,代码来源:AUIGameEvent.cs


示例5: GoToGameEvent

        public void GoToGameEvent(Fresvii.AppSteroid.Models.GameEvent gameEvent)
        {
            if (Application.internetReachability == NetworkReachability.NotReachable)
            {
                Fresvii.AppSteroid.Util.DialogManager.Instance.ShowSubmitDialog(FASText.Get("Offline"), FASText.Get("OK"), FASText.Get("Cancel"), FASText.Get("Close"), (del) => { });

                return;
            }

            RectTransform rectTransform = GetComponent<RectTransform>();

            GameObject goGameEvent = Instantiate(prfbAUIGameEvent) as GameObject;

            AUIGameEvent auiGameEvent = goGameEvent.GetComponent<AUIGameEvent>();

            auiGameEvent.GameEvent = gameEvent;

            goGameEvent.transform.SetParent(transform.parent, false);

            goGameEvent.gameObject.SetActive(true);

            goGameEvent.transform.SetAsLastSibling();

            AUIFrame nextFrame = auiGameEvent.frame;

            nextFrame.backFrame = this.frame;

            nextFrame.Animate(new Vector2(rectTransform.rect.width, 0f), Vector2.zero, () => { });

            frame.Animate(Vector2.zero, new Vector2(-rectTransform.rect.width * 0.5f, 0f), () =>
            {
                this.gameObject.SetActive(false);
            });
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:34,代码来源:AUIMoreApps.cs


示例6: StickerSelected

 public void StickerSelected(Fresvii.AppSteroid.Models.Sticker sticker)
 {
     if (OnStickerSelected != null)
     {
         OnStickerSelected(sticker);
     }
 }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:7,代码来源:AUIStickerPicker.cs


示例7: SetFriend

        public void SetFriend(Fresvii.AppSteroid.Models.Friend friend, AUIFriendList parentPage)
        {
            this.Friend = friend;

            this.parentPage = parentPage;

            this.user = this.Friend.ToUser();

            if (this.user.Id == FAS.CurrentUser.Id)
            {
                tagLabel.gameObject.SetActive(true);

                tagText.text = FASText.Get("You");

                if (!tagSized)
                {
                    userName.rectTransform.sizeDelta = new Vector2(userName.rectTransform.sizeDelta.x - tagLabel.rectTransform.sizeDelta.x - 30f, userName.rectTransform.sizeDelta.y);

                    tagSized = true;
                }
            }

            userIcon.Set(user.ProfileImageUrl);

            userName.text = user.Name;
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:26,代码来源:AUIFriendListCell.cs


示例8: SetApp

        public void SetApp(Fresvii.AppSteroid.Models.App addApp, AUIRecommendedApps AUIRecommendedApps)
        {
            this.AUIRecommendedApps = AUIRecommendedApps;

            if (addApp == null)
            {
                if (banner != null)
                    banner.gameObject.SetActive(false);

                appIcon.gameObject.SetActive(false);

                textAppName.gameObject.SetActive(false);

                textDeveloperName.gameObject.SetActive(false);

                button.interactable = false;
            }
            else
            {
                this.AddApp = addApp;

                if (banner != null)
                    banner.Set(this.AddApp.IconUrl);

                appIcon.Set(this.AddApp.IconUrl);

                textAppName.text = this.AddApp.Name;

                textDeveloperName.text = this.AddApp.GameGenres[0].Name;
            }
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:31,代码来源:AUIRecommendedAppsDetailCell.cs


示例9: OnMatchMakingMatchCompleted

    void OnMatchMakingMatchCompleted(Fresvii.AppSteroid.Models.Match match)
    {
        if (completeMatch == null)
        {
            completeMatch = match;
        }
        else if (completeMatch.Id == match.Id)
        {
            return;
        }
        else
        {
            completeMatch = match;
        }

        if (!(Application.platform == RuntimePlatform.Android || Application.platform == RuntimePlatform.IPhonePlayer))
        {
            Application.LoadLevel(loadSceneNameOnMatchCompleted);
        }
        else
        {
            Fresvii.AppSteroid.Util.DialogManager.Instance.SetLabel("Yes", "No", "Close");

            Fresvii.AppSteroid.Util.DialogManager.Instance.ShowSelectDialog("Match completed! Sample Game?", delegate(bool del)
            {
                if (del)
                {
                    Application.LoadLevel(loadSceneNameOnMatchCompleted);
                }
            });
        }
    }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:32,代码来源:MatchMakingObserver.cs


示例10: GoToAppDetail

        public void GoToAppDetail(Fresvii.AppSteroid.Models.App app)
        {
            FASUtility.SendPageView("event.ad.click.store", this.App.Id, System.DateTime.UtcNow, (e) =>
            {
                if (e != null)
                    Debug.LogError(e.ToString());

                Application.OpenURL(this.App.StoreUrl);
            });

            /*if (parentFrame.Animating) return;

            RectTransform rectTransform = GetComponent<RectTransform>();

            var auiAppDetail = ((GameObject)Instantiate(prfbAppDetail)).GetComponent<AUIAppDetail>();

            auiAppDetail.SetApp(app);

            auiAppDetail.transform.SetParent(parentFrame.transform.parent, false);

            auiAppDetail.transform.SetAsLastSibling();

            auiAppDetail.frame.backFrame = this.parentFrame;

            auiAppDetail.frame.Animate(new Vector2(rectTransform.rect.width, 0f), Vector2.zero, () => { });

            this.parentFrame.Animate(Vector2.zero, new Vector2(-rectTransform.rect.width * 0.5f, 0f), () =>
            {
                parentFrame.gameObject.SetActive(false);
            });*/
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:31,代码来源:AUIBannerCell.cs


示例11: GoToDirectMessage

        public void GoToDirectMessage(IList<Fresvii.AppSteroid.Models.DirectMessage> directMessages, Fresvii.AppSteroid.Models.ListMeta meta, bool animation)
        {
            if (frameTween.Animating || AUISlideButton.open) return;

            scrollView.StopScroll();

            RectTransform rectTransform = GetComponent<RectTransform>();

            AUIDirectMessages directMessagesPage = ((GameObject)Instantiate(prfbDirectMessages)).GetComponent<AUIDirectMessages>();

            directMessagesPage.listMeta = meta;

            directMessagesPage.transform.SetParent(transform.parent, false);

            directMessagesPage.transform.SetAsLastSibling();

            directMessagesPage.parentFrameTween = this.frameTween;

            if (animation)
            {
                directMessagesPage.frameTween.Animate(new Vector2(rectTransform.rect.width, 0f), Vector2.zero, () => { });

                this.frameTween.Animate(Vector2.zero, new Vector2(-rectTransform.rect.width * 0.5f, 0f), () =>
                {
                    this.gameObject.SetActive(false);
                });
            }
            else
            {
                directMessagesPage.frameTween.SetPosition(Vector2.zero);

                this.gameObject.SetActive(false);
            }
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:34,代码来源:AUIMessageList.cs


示例12: SetPreview

        public void SetPreview(Fresvii.AppSteroid.Models.Video video, AUIPreviewVideoList auiPreviewVideoList)
        {
            this.auiPreviewVideoList = auiPreviewVideoList;

            this.Video = video;

            videoThumbnail.Set(this.Video.ThumbnailUrl);

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

                textAppName.text = this.Video.App.Name;

                if (this.Video.App.GameGenres.Count > 0)
                    textGameCategory.text = this.Video.App.GameGenres[0].Name;

            }

            uint min = video.Duration / 60;

            uint sec = video.Duration % 60;

            uploadedText.text = video.CreatedAt.ToLocalTime().ToString(FASText.Get("LocalDateFormat")) + " " + FASText.Get("Uploaded");

            durationText.text = min + ":" + sec.ToString("00");
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:27,代码来源:AUIPreviewDetailCell.cs


示例13: GoToGameEvent

        public void GoToGameEvent(Fresvii.AppSteroid.Models.GameEvent gameEvent)
        {
            RectTransform rectTransform = GetComponent<RectTransform>();

            GameObject goGameEvent = Instantiate(prfbAUIGameEvent) as GameObject;

            AUIGameEvent auiGameEvent = goGameEvent.GetComponent<AUIGameEvent>();

            auiGameEvent.GameEvent = gameEvent;

            goGameEvent.transform.SetParent(transform.parent, false);

            goGameEvent.gameObject.SetActive(true);

            goGameEvent.transform.SetAsLastSibling();

            AUIFrame nextFrame = auiGameEvent.frame;

            nextFrame.backFrame = this.frame;

            nextFrame.Animate(new Vector2(rectTransform.rect.width, 0f), Vector2.zero, () => { });

            frame.Animate(Vector2.zero, new Vector2(-rectTransform.rect.width * 0.5f, 0f), () =>
            {
                this.gameObject.SetActive(false);
            });
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:27,代码来源:AUIEvents.cs


示例14: SetStickerSet

        public void SetStickerSet(Fresvii.AppSteroid.Models.StickerSet stickerSet, AUIStickerSetSelector selector)
        {
            this.StickerSet = stickerSet;

            this.selector = selector;

            image.Set(this.StickerSet.Url);
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:8,代码来源:AUIStickerSetCell.cs


示例15: SetSticker

        public void SetSticker(Fresvii.AppSteroid.Models.Sticker sticker, AUIStickerSelector stickerSelector)
        {
            this.Sticker = sticker;

            this.stickerSelector = stickerSelector;

            image.Set(sticker.Url);
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:8,代码来源:AUIStickerCell.cs


示例16: SetUserAgreement

        public void SetUserAgreement(Fresvii.AppSteroid.Models.UserAgreement userAgreement, Action<bool> callback)
        {
            this.UserAgreement = userAgreement;

            this.callback = callback;

            userAgreementText.text = userAgreement.Text;
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:8,代码来源:AUIUserAgreement.cs


示例17: SetThread

        public void SetThread(Fresvii.AppSteroid.Models.Thread thread, bool isApp, System.Action<Fresvii.AppSteroid.Models.Thread> OnClickCell)
        {
            this.OnClickCell = OnClickCell;

            this.isApp = isApp;

            UpdateThread(thread);
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:8,代码来源:AUICommunityTopCommentCell.cs


示例18: SetComment

        public void SetComment(Fresvii.AppSteroid.Models.Comment comment, AUICommunityTop communityTop)
        {
            this.communityTop = communityTop;

            if (this.Comment == null || this.Comment.Id != comment.Id)
            {
                this.Comment = comment;
            }
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:9,代码来源:AUICommunityTopImagessAndVideosCell.cs


示例19: SetPlayer

        public void SetPlayer(Fresvii.AppSteroid.Models.Player player, AUIMatchMaking parentPage)
        {
            this.Player = player;

            this.parentPage = parentPage;

            userIcon.Set(Player.User.ProfileImageUrl);

            UpdateCell();
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:10,代码来源:AUIMatchmakingPlayerCell.cs


示例20: SetComment

        public void SetComment(Fresvii.AppSteroid.Models.Comment comment, AUIForum auiForum)
        {
            this.Comment = comment;

            this.auiForum = auiForum;

            if (this.gameObject.activeInHierarchy)
            {
                StartCoroutine(Set());
            }
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:11,代码来源:AUICommentGridCell.cs



注:本文中的Fresvii类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Friend类代码示例发布时间:2022-05-24
下一篇:
C# Frequency类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap