示例#1
0
    public void PopUpBillboard(BillboardController src)
    {
        foreach (var item in OnStageBillboard)
        {
            if (item == null)
            {
                continue;
            }

            BillboardController _ctrl = item.GetComponent <BillboardController>();
            if (_ctrl == null)
            {
                continue;
            }

            if (src == _ctrl)
            {
                IncreaseSortLayer();
                _ctrl.SetToForeground(sortZ);
            }
            else
            {
                _ctrl.SetToBackground(beBackgroundColor);
            }
        }
    }
示例#2
0
    public void ResumeBillboardPop()
    {
        foreach (var item in OnStageBillboard)
        {
            if (item == null)
            {
                continue;
            }

            BillboardController _ctrl = item.GetComponent <BillboardController>();
            if (_ctrl == null)
            {
                continue;
            }

            IncreaseSortLayer();
            _ctrl.SetToForeground(sortZ);
        }
    }