Exemplo n.º 1
0
    void OnMouseUp()
    {
        Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);

        if (Physics.Raycast(ray, out RaycastHit finalHit) && CheckCollider(initHit.collider, finalHit.collider))
        {
            controller.DoRotation(initHit, finalHit);
        }
    }