コード例 #1
0
    public void Unselect()
    {
        if (selected == null)
        {
            return;
        }

        selected.BeforeUnselect(this);
        Selectable sel = selected;

        selected.isSelected = false;
        selected            = null;
        selected_type       = SelectedType.None;

        sel.AfterUnselect(this);
    }