public void ContinueGame() { mIsPaused = false; //Event aufrufen OnPauseChange.Invoke(mIsPaused); mPausePanel.SetActive(mIsPaused); }
public async Task OnPauseEventHandler(string currentSrc) { PlayerState.CurrentSrc = new Uri(currentSrc); PlayerState.PlayState = BulMediaPlayState.Paused; await OnPauseChange.InvokeAsync(PlayerState); StateHasChanged(); }
void Update() { if (Input.GetKeyDown(KeyCode.Escape)) { mIsPaused = !mIsPaused; //Event aufrufen OnPauseChange.Invoke(mIsPaused); mPausePanel.SetActive(mIsPaused); } }
private void Update() { if (Current.Game == null) { return; } bool currentPaused = Find.TickManager?.Paused ?? false; if (lastPaused != currentPaused) { OnPauseChange?.Invoke(currentPaused); lastPaused = currentPaused; } }
private void Update() { if (Current.Game != null) { bool currentPaused = Find.TickManager?.Paused ?? false; if (lastPaused != currentPaused) { OnPauseChange?.Invoke(currentPaused); lastPaused = currentPaused; } } bool removeAll = Current.ProgramState != ProgramState.Playing; AudioSourceManager.Tick(removeAll); }