private void Update() { if (gui.moveSlider.value != walkSpeed) { walkSpeed = gui.moveSlider.value; } if (gui.lookSlider.value != lookSpeed) { lookSpeed = gui.lookSlider.value; } Move(); Look(); actions.Action1(false); actions.Action2(false); actions.Action3(false); actions.Action4(false); menu.ShowMenu(false); }