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; }
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; }
public void ShareFrom(VerticesData value) { this.isShared = true; this.offset = value.offset; this.weight = value.weight; }