phaser4-rex-plugins
Version:
30 lines (27 loc) • 596 B
JavaScript
import {
Show,
Hide,
IsShown,
} from '../utils/Hide.js';
export default {
show(gameObject) {
if (gameObject === undefined) {
gameObject = this;
}
Show(gameObject, false);
return this;
},
hide(gameObject) {
if (gameObject === undefined) {
gameObject = this;
}
Hide(gameObject, true);
return this;
},
isShow(gameObject) {
if (gameObject === undefined) {
gameObject = this;
}
return IsShown(gameObject);
}
}