void Update() { Vector3 input_direction = new Vector3(Input.GetAxisRaw("Horizontal"), 0, Input.GetAxisRaw("Vertical")); input_direction.Normalize(); if (Input.GetButtonDown("Jump")) { player.Jump(); } if (Input.GetKeyDown(KeyCode.C)) { cam.Snap(); } player.SetDirection(cam.GetCardinalRotation() * input_direction); }