This action will "destroy" the given particle system (ie: free up the memory used by the particle system). You supply the unique ID value for the system to destroy, as returned when you created the system with the action Create Particle System. This action should be called whenever you no longer need a particle system in your game, or whenever you wish to re-create the particle system (for example, just before calling a Restart Game). Note that if the particle system has not been flagged as Persistent then you do not need to call this action, as the particle system (and any emitters associated with it) will be automatically cleaned up on room end.IMPORTANT! This function will also destroy and remove any emitters that may have been created and associated with the system being destroyed (see Create Particle Emitter for more information).
参数 描述 系统 要销毁的系统的唯一ID值
The above action block code will check for the "Escape" key being pressed and if it is detected then it removes the particle system and different particle types defined in the given global variables and then restarts the game.