/// <summary> /// duplicate settings to another object /// </summary> /// <param name="options">another object settings</param> public void DuplicateSettings(ExploderOption options) { options.Plane2D = Plane2D; options.CrossSectionVertexColor = CrossSectionVertexColor; options.CrossSectionUV = CrossSectionUV; options.SplitMeshIslands = SplitMeshIslands; options.UseLocalForce = UseLocalForce; options.Force = Force; }
public void DuplicateSettings(ExploderOption options) { options.Plane2D = this.Plane2D; options.CrossSectionVertexColor = this.CrossSectionVertexColor; options.CrossSectionUV = this.CrossSectionUV; options.SplitMeshIslands = this.SplitMeshIslands; options.UseLocalForce = this.UseLocalForce; options.Force = this.Force; options.FragmentMaterial = this.FragmentMaterial; }
/// <summary> /// refresh local members components objects /// </summary> public void RefreshComponentsCache() { meshFilter = GetComponent <MeshFilter>(); meshRenderer = GetComponent <MeshRenderer>(); meshCollider = GetComponent <MeshCollider>(); boxCollider = GetComponent <BoxCollider>(); options = GetComponent <ExploderOption>(); rigidBody = GetComponent <Rigidbody>(); rigid2D = GetComponent <Rigidbody2D>(); polygonCollider2D = GetComponent <PolygonCollider2D>(); }
/// <summary> /// refresh local members components objects /// </summary> public void RefreshComponentsCache() { meshFilter = GetComponent<MeshFilter>(); meshRenderer = GetComponent<MeshRenderer>(); meshCollider = GetComponent<MeshCollider>(); boxCollider = GetComponent<BoxCollider>(); options = GetComponent<ExploderOption>(); rigidBody = GetComponent<Rigidbody>(); rigid2D = GetComponent<Rigidbody2D>(); polygonCollider2D = GetComponent<PolygonCollider2D>(); }