@Override public void initialize(AppStateManager stateManager, Application application) { System.out.println("Inititalize " + getClass().getSimpleName()); super.initialize(stateManager, application); this.app = (SimpleApplication) application; this.assetManager = application.getAssetManager(); worldAppState = app.getStateManager().getState(WorldAppState.class); houseAppState = app.getStateManager().getState(HouseAppState.class); bulletAppState = app.getStateManager().getState(BulletAppState.class); SmartPhoneFactory.init(bulletAppState, assetManager, app.getRenderManager(), app.getCamera(), app.getAudioRenderer()); }
@Override public void initialize(AppStateManager stateManager, Application application) { System.out.println("Inititalize " + getClass().getSimpleName()); super.initialize(stateManager, application); this.app = (SimpleApplication) application; this.assetManager = application.getAssetManager(); worldAppState = app.getStateManager().getState(WorldAppState.class); houseAppState = app.getStateManager().getState(HouseAppState.class); bulletAppState = app.getStateManager().getState(BulletAppState.class); devicesAppState = app.getStateManager().getState(DevicesAppState.class); serverManager = new PHATServerManager(); SmartPhoneFactory.init(bulletAppState, assetManager, app.getRenderManager(), app.getCamera(), app.getAudioRenderer()); }
SmartPhoneFactory.init(bulletAppState, app.getAssetManager(), app.getRenderManager(), app.getCamera(), app.getAudioRenderer());