Esempio n. 1
0
        public void TryCreateMissingBags()
        {
            if (m_ItemContaiers == null)
            {
                m_ItemContaiers = new EventItemContainer[] { new EventItemContainer(AcceptedTypes.Armors), new EventItemContainer(AcceptedTypes.Weapons),
                                                             new EventItemContainer(AcceptedTypes.Cloths), new EventItemContainer(AcceptedTypes.Others) };
            }
            else
            {
                for (int i = 0; i < m_ItemContaiers.Length; i++)
                {
                    if (m_ItemContaiers[i] == null || m_ItemContaiers[i].Deleted)
                    {
                        m_ItemContaiers[i] = new EventItemContainer((AcceptedTypes)i);
                    }

                    m_ItemContaiers[i].Visible = false;
                    m_ItemContaiers[i].Movable = false;
                }
            }
        }
Esempio n. 2
0
        public void TryCreateMissingBags()
        {
            if (m_ItemContaiers == null)
            {
                m_ItemContaiers = new EventItemContainer[] { new EventItemContainer(AcceptedTypes.Armors), new EventItemContainer(AcceptedTypes.Weapons), 
                    new EventItemContainer(AcceptedTypes.Cloths), new EventItemContainer(AcceptedTypes.Others) };
            }
            else
            {
                for (int i = 0; i < m_ItemContaiers.Length; i++)
                {
                    if (m_ItemContaiers[i] == null || m_ItemContaiers[i].Deleted)
                        m_ItemContaiers[i] = new EventItemContainer((AcceptedTypes)i);

                    m_ItemContaiers[i].Visible = false;
                    m_ItemContaiers[i].Movable = false;
                }
            }
        }