D
D
dyzg2022-04-18 14:03:58
C++ / C#
dyzg, 2022-04-18 14:03:58

How to make time sleep?

I want to make the computer wait 1 second after pressing the button, and then only so that the player can click. How to do it? yield return new WaitForSeconds(1); - does not work.
(for void method)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
ANYJT, 2022-04-18
@dyzg

Maybe through IEnumerator?

K
koss4ok, 2022-04-20
@koss4ok

Thread.Sleep(1000)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question