示例#1
0
 public void OnDrag(PointerEventData data)
 {
     if (BorderlessWindow.framed)
     {
         return;
     }
     _deltaValue += data.delta;
     if (data.dragging)
     {
         BorderlessWindow.MoveWindowPos(_deltaValue, Screen.width, Screen.height);
     }
 }
    private void Awake()
    {
        _outcomePanel.SetActive(false);
        m_waitForOutcome = new WaitForSeconds(_outComeTimer);
        var resolutionVector = _canvasScaler.referenceResolution * _sizeFactor;

        Screen.SetResolution((int)resolutionVector.x, (int)resolutionVector.y, false);
#if !UNITY_EDITOR
        BorderlessWindow.MoveWindowPos(Vector2Int.zero, (int)resolutionVector.x, (int)resolutionVector.y);
#endif

        var versionsFound = ListAllVersions();
        SetButtonsInteractables(!versionsFound);
        _animatorParameterBehaviour.SetBool(0, versionsFound);
        _animatorParameterBehaviour.SetTrigger(1);
    }