setWireframe method
Implementation
void setWireframe(bool wireframeEnabled ) {
if ( wireframeEnabled ) {
if ( meshBody != null) meshBody?.material = meshBody?.materialWireframe;
if ( meshWeapon != null) meshWeapon?.material = meshWeapon?.materialWireframe;
}
else {
if ( meshBody != null) meshBody?.material = meshBody?.materialTexture;
if ( meshWeapon != null) meshWeapon?.material = meshWeapon?.materialTexture;
}
}