Beispiel #1
0
 /// <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;
 }
 /// <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;
 }
Beispiel #3
0
 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;
 }
Beispiel #4
0
 /// <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>();
 }
Beispiel #5
0
 /// <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>();
 }