Phaser API Documentation

  Version: 
destroy()

Description:

Destroys all object references in the Timer Event, i.e. its callback, scope, and arguments.

Normally, this method is only called by the Clock when it shuts down. As such, it doesn't stop the Timer Event. If called manually, the Timer Event will still be updated by the Clock, but it won't do anything when it fires.

Since: 3.0.0
Source: src/time/TimerEvent.js (Line 342)