D
D
Dmitry Medvedev2020-11-08 22:15:45
C++ / C#
Dmitry Medvedev, 2020-11-08 22:15:45

How to correctly register the process to stop when a key is pressed?

I do not understand how to correctly indicate the moment that was described in the question.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
freeExec, 2020-11-08
@freeExec

if (Input.anyKey)
    Application.Quit();

N
NonameProgrammer, 2020-11-11
@NonameProgrammer

What process? System.Diagnostics? In this case, put it in a separate thread and create an event

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question