public void MoveCharacter(MoveMenuOption moveOption) { if (moveOption == MoveMenuOption.forward) { print("forward"); player.Move(Camera.main.transform.forward); //physicsPlayer.SetMove (physicsPlayer.transform.forward); } else if (moveOption == MoveMenuOption.backward) { print("back"); //physicsPlayer.SetMove (-physicsPlayer.transform.forward); player.Move(-Camera.main.transform.forward); } else if (moveOption == MoveMenuOption.left) { //physicsPlayer.SetMove (-physicsPlayer.transform.right); print("left"); // physicsPlayer.SetMove (-Camera.main.transform.right); player.Rotate(-Vector3.up); } else if (moveOption == MoveMenuOption.right) { print("right"); //physicsPlayer.SetMove (physicsPlayer.transform.right); //physicsPlayer.SetMove (Camera.main.transform.right); player.Rotate(Vector3.up); } }