// Update is called once per frame public void UpdateAt() { #region input logic cursorMovedTimer -= Time.deltaTime; if (cursorMovedTimer < 0.0f) { cursorMovedTimer = 0.0f; } if (cursorMovedTimer == 0) { if (actions.Device != null) { if (actions.Right.IsPressed) { xMove = 1; cursorMovedTimer = cursorRepeatDelay; } if (actions.Left.IsPressed) { xMove = -1; cursorMovedTimer = cursorRepeatDelay; } if (actions.Up.IsPressed) { yMove = 1; cursorMovedTimer = cursorRepeatDelay; } if (actions.Down.IsPressed) { yMove = -1; cursorMovedTimer = cursorRepeatDelay; } } } setLive = actions.Activate.WasPressed; setSlow = actions.Slow.IsPressed; #endregion #region input action cursor.Move(xMove, yMove); if (setLive) { cursor.Activate(); } state.SetSlow(setSlow); xMove = 0; yMove = 0; #endregion }