[unity] implementation after clicking a button, delay and switch the background image/interface

There might be a better way, but so far I’ve found that you can do this, and you can try other ways.

 

Goal: In UNITY, after clicking a button, three screens (or Raw images) appear in sequence: the first screen appears 1 second later, the second screen appears 3 seconds later and the first screen disappears, and the third screen appears 3 seconds later and the second screen disappears. The first step is to create a C# script in Assets, let’s name it delaydisplay3, double-click visual studio to open the edit.