void Update() { if (userIsOnPhone) { action1 = touchControl.IsSingleTap(); action2 = touchControl.IsDoubleTap(); } if (userIsOnDesktop) { action1 = desktopControl.IsLeftClick(); action2 = desktopControl.IsRightClick(); } }