| | |
| | | var element = config.GetTalentElement(i);
|
| | | m_TalentSkills[i].transform.localPosition = element.position;
|
| | | }
|
| | | if (m_Arrows != null)
|
| | | {
|
| | | for (int i = 0; i < m_Arrows.Length; i++)
|
| | | {
|
| | | var element = config.GetArrowElement(i);
|
| | | m_Arrows[i].transform.localPosition = element.position;
|
| | | m_Arrows[i].rectTransform.sizeDelta = element.sizeDelta;
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | #if UNITY_EDITOR
|
| | |
| | | count++;
|
| | | }
|
| | | }
|
| | | m_EditorScriptable.SyncElementsCount(count);
|
| | | m_EditorScriptable.SyncTalentElementsCount(count);
|
| | | count = 0;
|
| | | if (m_Arrows != null)
|
| | | {
|
| | | for (int i = 0; i < m_Arrows.Length; i++)
|
| | | {
|
| | | if (m_Arrows[i].gameObject.activeSelf)
|
| | | {
|
| | | m_EditorScriptable.ApplyArrowElement(count, m_Arrows[i].transform.localPosition,
|
| | | m_Arrows[i].rectTransform.sizeDelta);
|
| | | count++;
|
| | | }
|
| | | }
|
| | | m_EditorScriptable.SyncArrowElementsCount(count);
|
| | | }
|
| | | }
|
| | | #endif
|
| | | }
|