Exemple #1
0
    private void OnMouseDown()
    {
        // Create a new fine
        var newFine = Instantiate(_finePrefab, transform);

        _mainController.AddDocument(newFine);

        // Start dragging it
        newFine.GetComponent <DraggableController>().StartDragging();
    }