Example #1
0
 public void ActiveInput()
 {
     if (mAutoActiveTimes.Count <= 0)
     {
         mKeepsDeactived = false;
         LineInputer.SetInputEnable(true);
     }
     else
     {
     }
 }
Example #2
0
        private void UpdateAutoActiveTimes()
        {
            if (IsClear)
            {
                return;
            }
            else
            {
            }

            float time;

            if (mAutoActiveTimes.Count > 0)
            {
                LineInputer.SetInputEnable(false);

                while (mAutoActiveTimes.Count > 0)
                {
                    time  = mAutoActiveTimes.Dequeue();
                    time -= Time.deltaTime;
                    if (time > 0f)
                    {
                        mActiveTimeRemains.Enqueue(time);
                    }
                    else
                    {
                    }
                }
                mAutoActiveTimes.Clear();
            }
            else
            {
            }

            if (mActiveTimeRemains.Count <= 0)
            {
                LineInputer.SetInputEnable(true);
            }
            else
            {
                while (mActiveTimeRemains.Count > 0)
                {
                    time = mActiveTimeRemains.Dequeue();
                    mAutoActiveTimes.Enqueue(time);
                }
                mActiveTimeRemains.Clear();
            }
        }
Example #3
0
        public void Update()
        {
            GridEffects?.UpdateEffects();
            LineInputer?.Update();
            GridOperater?.Update();
            OnUpdate?.Invoke();

            if (mKeepsDeactived)
            {
                LineInputer.SetInputEnable(false);
            }
            else
            {
                UpdateAutoActiveTimes();
            }
        }