Esempio n. 1
0
        public WeightData weight; // Initial value.

        public void Clear()
        {
            if (!this.isShared && this.weight != null)
            {
                this.weight.ReturnToPool();
            }

            this.isShared      = false;
            this.inheritDeform = false;
            this.offset        = 0;
            this.data          = null;
            this.weight        = null;
        }
Esempio n. 2
0
        internal WeightData weight = null; // Initial value.

        protected override void _OnClear()
        {
            base._OnClear();

            if (this.weight != null)
            {
                this.weight.ReturnToPool();
            }

            this.type             = DisplayType.Mesh;
            this.inheritAnimation = false;
            this.offset           = 0;
            this.weight           = null;
        }
        public WeightData weight = null; // Initial value.

        /// <inheritDoc/>
        /// <private/>
        protected override void _OnClear()
        {
            base._OnClear();

            if (this.weight != null)
            {
                this.weight.ReturnToPool();
            }

            this.type = BoundingBoxType.Polygon;
            this.x    = 0.0f;
            this.y    = 0.0f;
            this.vertices.Clear();
            this.weight = null;
        }
Esempio n. 4
0
 public void ShareFrom(VerticesData value)
 {
     this.isShared = true;
     this.offset   = value.offset;
     this.weight   = value.weight;
 }