"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.clickRestoreScene = clickRestoreScene;
const Entities_1 = require("../Entities");
function clickRestoreScene(appObjects) {
    const entity = Entities_1.StateMachineEntity.get(appObjects);
    if (entity) {
        entity.restoreLastState();
    }
    else {
        appObjects.submitError("clickRestoreScene", "Unable to find StateMachineEntity");
    }
}
//# sourceMappingURL=clickRestoreScene.js.map