コード例 #1
0
ファイル: NormalUpdater.cs プロジェクト: GF47/GRT
        public virtual void Stop()
        {
            if (!isAlive)
            {
                return;
            }

            UpdateDriver.Remove(this);
            isAlive = false;

            Stopping?.Invoke();
            StoppingOneShot?.Invoke();
            StoppingOneShot = null;
        }
コード例 #2
0
ファイル: NormalUpdater.cs プロジェクト: GF47/GRT
        public virtual void Start()
        {
            if (isAlive)
            {
                return;
            }

            UpdateDriver.Add(this);
            isAlive = true;

            Starting?.Invoke();
            StartingOneShot?.Invoke();
            StartingOneShot = null;
        }