Exemplo n.º 1
0
    public void Select(Selectable newSelected, Hand selectedHand)
    {
        if (!BlockSelection)
        {
            if (newSelected != null)
            {
                if (selected != null)
                {
                    // Two Step Selection
                    selected.AfterSelected(newSelected);
                    selected.Diselected();
                }
                newSelected.OnSelected(selectedHand);
                this.selected = newSelected;
                // if (newSelected != null)
                //Debug.Log(newSelected);
            }
            else
            {
                UnSelect();
            }
        }

        AsignPosition();
    }