Пример #1
0
        public override void Release()
        {
            if (!inUse)
            {
                return;
            }

            inUse = false;

            this.Reset();

            if (this.tokens != null)
            {
                this.tokens.Release();
                this.tokens = null;
            }

            if (lines != null)
            {
                lines.ReleaseItems();
                lines.Release();
                lines = null;
            }

            this.BottomColor = (Color32?)null;

            objectPool.Enqueue(this);
        }