Esempio n. 1
0
    public void StopDrag()
    {
        if (!dragging)
        {
            return;
        }

        if (Util.IsControlOrCommandHeld())
        {
            foreach (VoosActor actor in selectedActors)
            {
                editMain.ToggleTargetActor(actor);
            }
        }
        else
        {
            if (!Util.IsShiftHeld())
            {
                editMain.ClearTargetActors();
            }
            foreach (VoosActor actor in selectedActors)
            {
                editMain.AddTargetActor(actor);
            }
        }


        dragging = false;
        selectedActors.Clear();

        foreach (KeyValuePair <VoosActor, SelectionFeedback> entry in selectedFeedback)
        {
            entry.Value.RequestDestroy();
        }
        selectedFeedback.Clear();
        feedbackRect.gameObject.SetActive(false);
    }