Esempio n. 1
0
    /// <summary>
    /// 아래 함수를 제외한 특수한 업적달성시 콜 할 것
    /// </summary>
    /// <param name="i">업적번호</param>
    public static void GetAchivement(int i)
    {
        if (GetAchiveUnlockData(i) == true)
        {
            return;
        }
        if (!SetAchiveUnlockData(i, true))
        {
            return;
        }
        Debug.Log("Save - [Achivement] , Num : " + i);
        if (Database.achiveDatas[i].reward.Length != 0)
        {
            SetDiaryUnlockData(int.Parse(Database.achiveDatas[i].reward), true);
        }

        /*if (Database.achiveDatas[i].cardReward.Length != 0)
         * {
         *  SetCardUnlockData(int.Parse(Database.achiveDatas[i].cardReward), true);
         * }*/
        GooglePlayManager.CheckGoogleAchive(i);
        SaveAll();
    }