UserController.Update C# (CSharp) Method

Update() private method

private Update ( ) : void
return void
    private void Update()
    {
        if (Input.GetKeyDown(KeyCode.LeftShift)||Input.GetKeyDown(KeyCode.RightShift))
        {
            Debug.Log("Shift Pressed"); //Logs message to the Unity Console.
            shiftOn = true;
        }
        if (Input.GetKeyUp(KeyCode.LeftShift) || Input.GetKeyUp(KeyCode.RightShift))
        {
            Debug.Log("Shift Released"); //Logs message to the Unity Console.
            shiftOn = false;
        }
    }

Usage Example

Beispiel #1
0
        public void Update_IdIsNotEqualUser_ReturnBadRequest(int userId)
        {
            User user   = users.First(x => x.id == userId);
            var  result = _controller.Update(2, user);

            Assert.IsType <BadRequestResult>(result);
        }
All Usage Examples Of UserController::Update