public void recordSpectator() { this.comm.removeListener(this); IpPort address = App.SceneValues.battleMode.address; if (!address.Equals(App.Communicator.getAddress())) { this.comm = App.SceneValues.battleMode.specCommGameObject.GetComponent<MiniCommunicator>(); this.comm.addListener(this); this.comm.setEnabled(true, true); } messages.Add("{\"version\":\"0.112.1\",\"assetURL\":\"http://download.scrolls.com/assets/\",\"roles\":\"GAME,RESOURCE\",\"msg\":\"ServerInfo\"}"); }
public Recorder(String saveFolder, Mod uiClass, Settings stngs) { this.settings = stngs; this.saveFolder = saveFolder; //App.Communicator.addListener(this); this.comm = App.Communicator; this.comm.addListener(this); /*IpPort address = App.SceneValues.battleMode.address; if (!address.Equals(App.Communicator.getAddress())) { this.comm = App.SceneValues.battleMode.specCommGameObject.GetComponent<MiniCommunicator>(); this.comm.addListener(this); this.comm.setEnabled(true, true); } */ this.uiClass = uiClass; this.recording = true; //timestamp = DateTime.Now; gsc = new GameStateCreator(); }