예제 #1
0
    // Use this for initialization
    void Start()
    {
        SceneManager.sceneLoaded   += OnSceneLoad;
        SceneManager.sceneUnloaded += OnSceneUnload;

        if (GameObject.Find("PauseManager") != null)
        {
            _Pausing = GameObject.Find("PauseManager").GetComponent <Pausing>();
        }
    }
예제 #2
0
파일: Status.cs 프로젝트: rbergen/R136.NET
 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);
 }
예제 #3
0
        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;
        }
예제 #4
0
파일: Processing.cs 프로젝트: Adel-dz/Hub
        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);
        }
예제 #5
0
            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);
            }
예제 #6
0
 public void Pause()
 {
     Pausing?.Invoke(this, EventArgs.Empty);
 }
예제 #7
0
 public static void Unpause()
 {
     instance._paused = false;
     Pausing?.Invoke(false); // Henrique - creating a delegate for controlling the animations on pause and unpausing
 }
예제 #8
0
 protected void OnPause(object sender, EventArgs e)
 {
     Pausing?.Invoke(sender, e);
 }