コード例 #1
0
    //----------------------------------------------------------------------------

    /*!
     *          @brief	GameCenter解除
     */
    //----------------------------------------------------------------------------
    static public void GameCenterUnlockUnit()
    {
        if (UserDataAdmin.Instance == null ||
            UserDataAdmin.Instance.m_StructPlayer == null ||
            UserDataAdmin.Instance.m_StructPlayer.flag_unit_get == null
            )
        {
            return;
        }

        uint unUnitGetCt = ServerDataUtil.GetBitFlagCt(ref UserDataAdmin.Instance.m_StructPlayer.flag_unit_get);

#if BUILD_TYPE_DEBUG
        //		Debug.Log( "Achievement UnitGetCt = " + unUnitGetCt );
#endif

        if (unUnitGetCt >= 10)
        {
            PlayGameServiceUtil.UnlockAchievement(EACHIEVEMENT.eCOLLECT_010);
        }

        if (unUnitGetCt >= 50)
        {
            PlayGameServiceUtil.UnlockAchievement(EACHIEVEMENT.eCOLLECT_050);
        }

        if (unUnitGetCt >= 100)
        {
            PlayGameServiceUtil.UnlockAchievement(EACHIEVEMENT.eCOLLECT_100);
        }

        if (unUnitGetCt >= 150)
        {
            PlayGameServiceUtil.UnlockAchievement(EACHIEVEMENT.eCOLLECT_150);
        }

        if (unUnitGetCt >= 200)
        {
            PlayGameServiceUtil.UnlockAchievement(EACHIEVEMENT.eCOLLECT_200);
        }

        if (unUnitGetCt >= 250)
        {
            PlayGameServiceUtil.UnlockAchievement(EACHIEVEMENT.eCOLLECT_250);
        }

        if (unUnitGetCt >= 300)
        {
            PlayGameServiceUtil.UnlockAchievement(EACHIEVEMENT.eCOLLECT_300);
        }

        if (unUnitGetCt >= 350)
        {
            PlayGameServiceUtil.UnlockAchievement(EACHIEVEMENT.eCOLLECT_350);
        }
    }
コード例 #2
0
    //----------------------------------------------------------------------------

    /*!
     *          @brief	GameCenter解除
     */
    //----------------------------------------------------------------------------
    static public void GameCenterUnlockQuestRanking()
    {
        if (UserDataAdmin.Instance == null ||
            UserDataAdmin.Instance.m_StructPlayer == null ||
            UserDataAdmin.Instance.m_StructPlayer.flag_quest_clear == null
            )
        {
            return;
        }

        uint unQuestClearCt = ServerDataUtil.GetBitFlagCt(ref UserDataAdmin.Instance.m_StructPlayer.flag_quest_clear);

#if BUILD_TYPE_DEBUG
        //		Debug.Log( "Achievement QuestClearCt = " + unQuestClearCt );
#endif
        PlayGameServiceUtil.SubmitScore(ELEADERBORAD.eCLEAR_AREA_COUNT, (long)unQuestClearCt);
    }