phaser4-rex-plugins
Version:
34 lines (30 loc) • 875 B
JavaScript
import GetLocalState from './utils/GetLocalState.js';
export default {
getLocalState(gameObject) {
return GetLocalState(gameObject);
},
resetChildState(gameObject) {
this
.resetChildPositionState(gameObject)
.resetChildVisibleState(gameObject)
.resetChildAlphaState(gameObject)
.resetChildActiveState(gameObject);
return this;
},
resetChildrenState(gameObjects) {
for (var i = 0, cnt = gameObjects.length; i < cnt; i++) {
this.resetChildState(gameObjects[i]);
}
return this;
},
syncProperties() {
this
.syncPosition()
.syncVisible()
.syncAlpha()
.syncActive()
.syncScrollFactor()
.syncMask();
return this;
}
};