mirror of
https://github.com/BotChain-Robots/ui.git
synced 2026-07-08 15:07:22 +02:00
Fixed up some issues with camera rotation and removed functionality where moving camera disables servo and dc ui panels
This commit is contained in:
@@ -11,14 +11,6 @@ public class ModuleSelector : MonoBehaviour
|
||||
|
||||
void Update()
|
||||
{
|
||||
// If user is moving the camera, deselect current module
|
||||
if (Input.GetKey(KeyCode.W) || Input.GetKey(KeyCode.A) ||
|
||||
Input.GetKey(KeyCode.S) || Input.GetKey(KeyCode.D))
|
||||
{
|
||||
ClearSelection();
|
||||
return;
|
||||
}
|
||||
|
||||
if (Input.GetMouseButtonDown(0))
|
||||
{
|
||||
// Ignore clicks over UI
|
||||
|
||||
Reference in New Issue
Block a user