Skip to content

Commit 468b61d

Browse files
committed
Tweaked the LightsPlugin example in its class description.
1 parent 124b0ff commit 468b61d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/gameobjects/lights/LightsPlugin.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ var PluginCache = require('../../plugins/PluginCache');
1717
* Add Lights using the {@link Phaser.GameObjects.LightsManager#addLight} method:
1818
*
1919
* ```javascript
20-
* // Create a Light at [400, 300] and a radius of 200.
20+
* // Enable the Lights Manager because it is disabled by default
21+
* this.lights.enable();
22+
*
23+
* // Create a Light at [400, 300] with a radius of 200
2124
* this.lights.addLight(400, 300, 200);
2225
* ```
2326
*

0 commit comments

Comments
 (0)