phaser/v3/src/scene/global/components/Pause.js
Richard Davey 665b295c3b Restructured the Scene folder and moved the plugins and components around
Also updated the physicsManager to make it a lot more cleaner and easy to adjust in future
2017-08-18 01:42:14 +01:00

11 lines
160 B
JavaScript

var Pause = function (key)
{
var entry = this.getActiveScene(key);
if (entry)
{
entry.scene.sys.pause();
}
};
module.exports = Pause;