Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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>();
 }
Exemplo n.º 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>();
 }