public void ActiveInput() { if (mAutoActiveTimes.Count <= 0) { mKeepsDeactived = false; LineInputer.SetInputEnable(true); } else { } }
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(); } }
public void Update() { GridEffects?.UpdateEffects(); LineInputer?.Update(); GridOperater?.Update(); OnUpdate?.Invoke(); if (mKeepsDeactived) { LineInputer.SetInputEnable(false); } else { UpdateAutoActiveTimes(); } }