UNPKG

phaser4-rex-plugins

Version:
7 lines (5 loc) 178 B
const TextClass = Phaser.GameObjects.Text; var IsTextGameObject = function (gameObject) { return (gameObject instanceof TextClass); } export default IsTextGameObject;