private void Move() { if (myFPSController.GetCanMove()) { Vector3 Direction = new Vector3(Input.GetAxis("Horizontal") * myFPSController.walkingSpeed, 0, Input.GetAxis("Vertical") * myFPSController.walkingSpeed); myCC.Move(Direction * Time.deltaTime); } }