public RoomModeSwitcher(float switchInterval, IRoomMode roomMode) { this.switchInterval = switchInterval; this.switchTimer = switchInterval; this.roomMode = roomMode; eventTimer = new UpdateTimer(); eventTimer.Setup(1.0f, (realDelay) => { RavenhillEvents.OnRoomModeSwitchTimerChanged(switchTimer, switchInterval); }); }