Changing flipbook in 2D Side-Scroller C++ project

I remember that there was an UpdateAnimation function in Blueprint’s project , but this function is missing in C++ project’s blueprint.How can I change the animation of the character?