Esempio n. 1
0
    // Token: 0x060002F0 RID: 752 RVA: 0x0000DB9C File Offset: 0x0000BF9C
    public void CheckGetAchive()
    {
        this.getAchiIdList = new List <int>();
        int num = SuperGameMaster.sDataBase.count_AchieveDB();

        for (int i = 0; i < num; i++)
        {
            AchieveDataFormat achieveDataFormat = SuperGameMaster.sDataBase.get_AchieveDB(i);
            int id = achieveDataFormat.id;
            if (!SuperGameMaster.CheckAchieveFlag(id))
            {
                if (achieveDataFormat != null)
                {
                    if (achieveDataFormat.flagType[0] == Flag.Type.DEFAULT)
                    {
                        SuperGameMaster.Set_GetAchieve(id);
                        this.getAchiIdList.Add(id);
                        break;
                    }
                    int num2 = 0;
                    for (int j = 0; j < achieveDataFormat.flagType.Length; j++)
                    {
                        Sign sign = achieveDataFormat.flagSign[j];
                        if (sign != Sign.MORE)
                        {
                            if (sign != Sign.LESS)
                            {
                                if (sign == Sign.EQUAL)
                                {
                                    if (SuperGameMaster.get_Flag(achieveDataFormat.flagType[j]) == achieveDataFormat.flagValue[j])
                                    {
                                        num2++;
                                    }
                                }
                            }
                            else if (SuperGameMaster.get_Flag(achieveDataFormat.flagType[j]) <= achieveDataFormat.flagValue[j])
                            {
                                num2++;
                            }
                        }
                        else if (SuperGameMaster.get_Flag(achieveDataFormat.flagType[j]) >= achieveDataFormat.flagValue[j])
                        {
                            num2++;
                        }
                    }
                    if (num2 == achieveDataFormat.flagType.Length)
                    {
                        this.getAchiIdList.Add(id);
                    }
                }
            }
        }
    }
Esempio n. 2
0
 // Token: 0x060003C2 RID: 962 RVA: 0x000169D4 File Offset: 0x00014DD4
 public void CreateButton()
 {
     for (int i = 0; i < SuperGameMaster.sDataBase.count_AchieveDB(); i++)
     {
         AchieveDataFormat achieveDataFormat = SuperGameMaster.sDataBase.get_AchieveDB(i);
         GameObject        gameObject        = UnityEngine.Object.Instantiate <GameObject>(this.btnPref);
         gameObject.transform.SetParent(this.contentsList.GetComponent <RectTransform>(), false);
         gameObject.GetComponent <AchieveButton>().ScrollViewUI = base.gameObject;
         if (SuperGameMaster.CheckAchieveFlag(achieveDataFormat.id))
         {
             gameObject.GetComponent <AchieveButton>().SetId(achieveDataFormat.id);
             gameObject.GetComponent <AchieveButton>().CngName(achieveDataFormat.name);
             gameObject.GetComponent <AchieveButton>().CngInfo(achieveDataFormat.info);
         }
         else
         {
             gameObject.GetComponent <AchieveButton>().SetId(achieveDataFormat.id);
             gameObject.GetComponent <AchieveButton>().CngName("????");
             gameObject.GetComponent <AchieveButton>().CngInfo(achieveDataFormat.info);
             gameObject.GetComponent <Button>().interactable = false;
         }
     }
 }