In unity2D, when a button is clicked, it rotates and the button turns over I want to create a UI, but I can't figure out how to do it.
Please give me a hint if you understand.

I know the basics, such as adding a click attribute to a Button or creating a script.
Please give a hint of what method you use to make it appear to be rotating once.

What you can think of now is
When clicked
1) Set the first displayed UI to SetActive (false)
2) Set Active (half rotation) UI to SetActive (true)
3) Take half a second using invoke
4) Set 2) UI to SetActive (false)
Set Backside UI to SetActive (true)
I feel like there is a smarter way.

PC: mac
Language: C #