public static void IgnoreLayerCollision(int layer1, int layer2) { bool ignore = true; Physics.IgnoreLayerCollision(layer1, layer2, ignore); }