Пример #1
0
        /// <summary>
        /// Unlocks Container under cursor
        /// </summary>
        public static void Unlock()
        {
            GameObject underCursor = GameCursor.GenericUnderCursor;
            OCL        container   = underCursor.GetComponent <OCL>();

            List <GameObject>        partyMembers = PartyMemberAI.GetSelectedPartyMembers();
            IEnumerator <GameObject> enumerator   = partyMembers.GetEnumerator();

            try
            {
                enumerator.MoveNext();
                if (container)
                {
                    container.Unlock(enumerator.Current);
                }
            }
            finally
            {
                if (enumerator == null)
                {
                }
                enumerator.Dispose();
            }
        }