add some extra assets FX and SFX
This commit is contained in:
@@ -34,6 +34,8 @@ public class combineMeshSystem : MonoBehaviour
|
||||
public bool generateUVMap = false;
|
||||
public bool destroyCombinedChildren = false;
|
||||
|
||||
public bool addMeshColliderToCombinedMesh;
|
||||
|
||||
[Space]
|
||||
[Header ("Debug")]
|
||||
[Space]
|
||||
@@ -157,6 +159,10 @@ public class combineMeshSystem : MonoBehaviour
|
||||
eventToSendCombinedObject.Invoke (gameObject);
|
||||
}
|
||||
|
||||
if (addMeshColliderToCombinedMesh) {
|
||||
gameObject.AddComponent<MeshCollider> ();
|
||||
}
|
||||
|
||||
if (showDebugPrint) {
|
||||
print ("objects meshes combined");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user