@Override
    public void initialize(AppStateManager stateManager, Application app) {
        initEvent(app, this);
        for (CinematicEvent cinematicEvent : cinematicEvents) {
            cinematicEvent.initEvent(app, this);
        }
        if (!cameras.isEmpty()) {
            for (CameraNode n : cameras.values()) {
                n.setCamera(app.getCamera());
            }
        }
        initialized = true;
    }
used internally

@param stateManager the state manager
@param app the application
jme3-core/src/main/java/com/jme3/cinematic/Cinematic.java