コード例 #1
0
ファイル: DisplayData.cs プロジェクト: soldiers1989/XLXQP
        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;
        }
コード例 #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;
        }
コード例 #3
0
        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;
        }
コード例 #4
0
ファイル: DisplayData.cs プロジェクト: soldiers1989/XLXQP
 public void ShareFrom(VerticesData value)
 {
     this.isShared = true;
     this.offset   = value.offset;
     this.weight   = value.weight;
 }