Tentative button

This commit is contained in:
jimmy Lim 2021-12-03 10:38:33 -05:00
parent 32e61cd866
commit 3037382203

View File

@ -31,6 +31,9 @@ namespace Assets.Scripts
// Update is called once per frame // Update is called once per frame
void FixedUpdate() void FixedUpdate()
{ {
if(OVRInput.GetDown(OVRInput.RawButton.X)){
selectedMovement =ChoiceOfMovement.wasd;
}
if(selectedMovement != currentMovement) if(selectedMovement != currentMovement)
{ {
if (components[currentMovement] is IScriptDeMovement) if (components[currentMovement] is IScriptDeMovement)