ecs icon indicating copy to clipboard operation
ecs copied to clipboard

How to stop Game based on user Input ?

Open cchandel opened this issue 4 years ago • 1 comments

Hi, I need to stop a running game based on user input. Then, how can I re-start the game? Or destroy the existing world and create a new world ? Thanks.

cchandel avatar Nov 13 '21 17:11 cchandel

You can create a restart system with system evnet "Restart", user input trigger restart action by emitting "Restart". the "restart system" will reset component data to initialization state.

zllangct avatar Nov 16 '21 08:11 zllangct