Beispiel #1
0
    /// <summary>
    /// 选中目标
    /// </summary>
    public void SelectItem()
    {
        if (IsSelect)
        {
            return;
        }
        if (CurrentSelectItem != null)
        {
            CurrentSelectItem.DeselectItem(this);
        }

        IsSelect          = true;
        CurrentSelectItem = this;
        if (TargetGraphic != null)
        {
            TargetGraphic.overrideSprite = Select;
        }
        if (SystemInfo != null)
        {
            Debug.Log("ShowSubSystem:" + SystemInfo.DevName);
        }
    }