Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How can I delay some part of my Unity script?

Hello,

I'm sorry if this question got asked before, yet I am new to Brackeys and am not familiar with the user interface ;)

As the title says, I want to delay or pause the script in order to trigger certain events several seconds after other events occured. I started coding with Arduino, and there was this handy delay-function:

do_one_thing();
delay(1000);
do_the_next_thing();

This function doesn't seem to be available in Unity though. I tried experimenting with Time.deltaTime, resulting in multiple crashes.

Could somebody please point me in the right direction?

Best Answer

Answers

  • Nice, that appears to be pretty much what I was looking for. Thanks a lot!

Sign In or Register to comment.