Пример #1
0
    // ペンギンが何かに当たったら
    void OnTriggerEnter(Collider collision)
    {
        if (collision.gameObject.CompareTag("Mashroom"))
        {
            // マッシュルームに当たったら

            GetConfused(collision.gameObject);
        }
        else
        {
            //障害物に当たったら
            GameManager.state    = State.Over;
            enableCrashAnimation = true;

            SoundManager.instance.StopBGM();

            // スコアを出す
            score_text.GetComponent <RectTransform> ().anchoredPosition3D = new Vector3(10, 110, 0);

            // GameCenterにスコア送信
            RankingUtility.ReportScore(ObstacleController.score);

            // バナー表示
            bannerView.Show();
        }
    }
Пример #2
0
        public ActionResult GroupRanking()
        {
            var nowLecture = HogwartsSettingUtility.GetNowLecture();
            var userInRole = UserUtility.GetUserListInNowDisplayGroup().ToDictionary(x => x.Id);

            ViewBag.GroupPracticeRecords = RankingUtility.GetGroupPracticeRecordViewModels(nowLecture.Id, userInRole);
            ViewBag.GroupPointRecords    = RankingUtility.GetGroupPointRecordViewModels(nowLecture.Id, userInRole);
            return(PartialView("_GroupRankingView"));
        }
Пример #3
0
        public ActionResult Index()
        {
            var nowLecture = HogwartsSettingUtility.GetNowLecture();
            var userInRole = UserUtility.GetUserListInNowDisplayGroup().ToDictionary(x => x.Id);

            ViewBag.UserPointRecords = RankingUtility.GetUserPointRecordViewModels(nowLecture.Id, userInRole).OrderBy(x => x.UserLoginId);

            ViewBag.GroupPointRecords = RankingUtility.GetGroupPointRecordViewModels(nowLecture.Id, userInRole);
            return(View());
        }
Пример #4
0
    // 最初のフレームが始まる直前
    void Start()
    {
        GameManager.state = State.Title;
        firstPosition     = transform.position;

        // Game Center認証
        RankingUtility.Auth();

        // バナー読み込み
        RequestBanner();
    }
Пример #5
0
        public ActionResult UserRanking()
        {
            var nowLecture = HogwartsSettingUtility.GetNowLecture();
            var user       = db.Users.Where(x => x.UserName == User.Identity.Name).First();
            var userInRole = UserUtility.GetUserListInNowDisplayGroup().ToDictionary(x => x.Id);

            ViewBag.UserPracticeRecords = RankingUtility.GetUserPracticeRecordViewModels(nowLecture.Id, userInRole);
            ViewBag.UserPointRecords    = RankingUtility.GetUserPointRecordViewModels(nowLecture.Id, userInRole);

            return(PartialView("_UserRankingView"));
        }
Пример #6
0
 void onRankButtonDown()
 {
     RankingUtility.ShowLeaderboardUI();
 }