What will happen if all the animals extinct?

If all the animals go extinct, then we will have to rely on only plants.