I'm making a min text adventure and want to have some text displayed for a few seconds before moving on with the program. I found stuff like await etc but can't seem te implement them in my code.
Here's my code:
void state_pad_1 (){
text.text = "You put the " + weight + "kg on pad 1.\n\n ";
if (weight ==weight1){
myState = States.room_2;}
else {
myState = States.room_1;
}
}
So the delay should be between the text and the if statement.