Phaser.Plugin = function (game, parent){ this.game = game; this.parent = parent; this.active = false ; this.visible = false ; this.hasPreUpdate = false ; this.hasUpdate = false ; this.hasPostUpdate = false ; this.hasPreRender = false ; this.hasRender = false ; this.hasPostRender = false ; } ; Phaser.Plugin.prototype = { preUpdate: function (){ } , update: function (){ } , postUpdate: function (){ } , preRender: function (){ } , render: function (){ } , postRender: function (){ } , destroy: function (){ this.game = null ; this.parent = null ; this.active = false ; this.visible = false ; } } ;