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); } } }
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); } }