Ejemplo n.º 1
0
 private void CleanSkinUnlocks(ItemUnlockUIComponent itemUnlockUI)
 {
     foreach (GameObject obj2 in itemUnlockUI.rewardPreviews)
     {
         Object.Destroy(obj2);
     }
 }
Ejemplo n.º 2
0
        private void InitializeSkinUnlocks(ItemUnlockUIComponent itemUnlockUI, SelectedItemUI selectedItemUI, Entity entity)
        {
            TankPartItem      tankPartItem = selectedItemUI.TankPartItem;
            List <VisualItem> list         = new List <VisualItem>();

            foreach (VisualItem item2 in tankPartItem.Skins)
            {
                if (item2.RestrictionLevel > 0)
                {
                    list.Add(item2);
                }
            }
            GetAllGraffitiesEvent eventInstance = new GetAllGraffitiesEvent();

            base.ScheduleEvent(eventInstance, entity);
            foreach (VisualItem item3 in eventInstance.Items)
            {
                if (ReferenceEquals(item3.ParentItem, tankPartItem) && (item3.RestrictionLevel > 0))
                {
                    list.Add(item3);
                }
            }
            if (< > f__am$cache0 == null)
            {