//Do this when the mouse is clicked over the selectable object this script is attached to. public void OnPointerDown(PointerEventData eventData) { CursorLockControl.LockCursor(); GameCanvasScript.Continuar(); }