| | |
| | |
|
| | | private void SelectBoss()
|
| | | {
|
| | | autoSelectScroll.TrySelectData(bossId);
|
| | | //autoSelectScroll.TrySelectData(bossId);
|
| | | selectedBossId = bossId;
|
| | | }
|
| | |
|
| | | protected virtual void OnSubscribe(int _bossId)
|
| | |
| | |
|
| | | protected virtual void LateUpdate()
|
| | | {
|
| | | if (autoSelectScroll.autoSelectable && selectedBossId != bossId && bossId > 0)
|
| | | {
|
| | | if (Mathf.Abs(centerSign.position.y - rectTransform.position.y) * 100f < rectTransform.rect.height * 0.45f)
|
| | | {
|
| | | selectedBossId = bossId;
|
| | | }
|
| | | }
|
| | | //if (autoSelectScroll.autoSelectable && selectedBossId != bossId && bossId > 0)
|
| | | //{
|
| | | // if (Mathf.Abs(centerSign.position.y - rectTransform.position.y) * 100f < rectTransform.rect.height * 0.45f)
|
| | | // {
|
| | | // selectedBossId = bossId;
|
| | | // }
|
| | | //}
|
| | |
|
| | | if (m_RefreshAtOnce != null)
|
| | | {
|