// CTOR public AchievementUnlocker(AchievementUnlockerDescriptor i_Descriptor) { m_AchievementId = i_Descriptor.achievementId; m_CheckOnEvent = i_Descriptor.checkOnEvent; m_EventName = i_Descriptor.eventName; m_Conditions = new List <UserStatCondition>(); for (int conditionDescriptorIndex = 0; conditionDescriptorIndex < i_Descriptor.conditionsCount; ++conditionDescriptorIndex) { UserStatConditionDescriptor conditionDescriptor = i_Descriptor.GetConditionDescriptor(conditionDescriptorIndex); if (conditionDescriptor != null) { UserStatCondition condition = conditionDescriptor.BuildCondition(); if (condition != null) { m_Conditions.Add(condition); } } } }