public void OnRoomVariablesUpdate(BaseEvent evt) { if (HandleRecordToDisk(evt)) { return; } switch (GameManager.Inst.LevelLoaded) { case GameManager.Level.BIZSIM: BizSimManager.Inst.OnRoomVariablesUpdate(evt); break; case GameManager.Level.ORIENT: case GameManager.Level.TEAMROOM: // These are handled by RoomVariableUrlController now. break; default: Debug.LogError("Room variable update not handled in level: " + (int)GameManager.Inst.LevelLoaded); break; } RoomVariableUrlController.HandleRoomVariableUpdate(evt); RoomVariableToEnable.HandleRoomVariableUpdate(evt); }
void HandleRoomVariableUpdate(UserVariable userVar) { switch (GameManager.Inst.LevelLoaded) { case GameManager.Level.ORIENT: case GameManager.Level.TEAMROOM: RoomVariableUrlController.HandleRoomVariableUpdate(userVar); break; default: Debug.LogError("Room variable update not handled for level: " + (int)GameManager.Inst.LevelLoaded); break; } RoomVariableToEnable.HandleRoomVariableUpdate(userVar); }