// Use this for initialization void Start() { SceneManager.sceneLoaded += OnSceneLoad; SceneManager.sceneUnloaded += OnSceneUnload; if (GameObject.Find("PauseManager") != null) { _Pausing = GameObject.Find("PauseManager").GetComponent <Pausing>(); } }
public void AddBytes(List <byte> bytes) { bytes.AddRange(Watermark); Pausing.AddByte(bytes); ContinuationStatus.AddSnapshotBytes(bytes); InputSpecs.AddSnapshotBytes(bytes); EngineSnapshot.AddSnapshotBytes(bytes); Language.AddTextBytes(bytes); Texts.AddTextsBytes(bytes); true.AddByte(bytes); }
private void PauseButton_Click(object sender, RoutedEventArgs e) { Pausing?.Invoke(sender, e); this._mpp.Pause(); this.PlayButton.IsEnabled = true; this.PauseButton.IsEnabled = false; this.StopButton.IsEnabled = true; this.IsPaused = true; }
protected void OnPause() { Assert(State == State_t.Running); Pausing?.Invoke(this); using (m_evPause = new AutoResetEvent(false)) { State = State_t.Paused; m_evPause.WaitOne(); } State = State_t.Running; Resumed?.Invoke(this); }
void InitializeProperties() { SelectedTrim.Subscribe((v) => { SetTrimSettingsWith(v); }); Prologue.Subscribe((v) => { UpdateButtonStatus(); }); Epilogue.Subscribe((v) => { UpdateButtonStatus(); }); PrologueEnabled.Subscribe((v) => { UpdateButtonStatus(); }); EpilogueEnabled.Subscribe((v) => { UpdateButtonStatus(); }); TrimmingName.Subscribe((v) => { UpdateButtonStatus(); }); Started.Subscribe((V) => { UpdatePlayingState(); }); Pausing.Subscribe((v) => { UpdatePlayingState(); }); Duration.Subscribe((v) => { }); CommandRegister.Subscribe(ExecRegister); CommandApply.Subscribe(ExecApply); CommandUpdate.Subscribe(ExecUpdate); CommandUndo.Subscribe(ExecUndo); CommandCancel.Subscribe(ExecCancel); CommandSelect.Subscribe(ExecSelect); Rating.Subscribe(ChangeRating); }
public void Pause() { Pausing?.Invoke(this, EventArgs.Empty); }
public static void Unpause() { instance._paused = false; Pausing?.Invoke(false); // Henrique - creating a delegate for controlling the animations on pause and unpausing }
protected void OnPause(object sender, EventArgs e) { Pausing?.Invoke(sender, e); }