| | |
| | | get { return m_ContentSizeDelta; }
|
| | | }
|
| | |
|
| | | public int arrowCount
|
| | | {
|
| | | get { return arrowElements == null ? 0 : arrowElements.Count; }
|
| | | }
|
| | |
|
| | | public int skillCount
|
| | | {
|
| | | get { return skillElements == null ? 0 : skillElements.Count; }
|
| | | }
|
| | |
|
| | | public TalentElement GetTalentElement(int index)
|
| | | {
|
| | | if (skillElements != null && index < skillElements.Count)
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public void ApplyArrowElement(int index, Vector3 _position, Vector2 _sizeDelta)
|
| | | public void ApplyArrowElement(int index, Vector3 _position, Vector2 _sizeDelta, Vector3 _rotation, string _iconKey)
|
| | | {
|
| | | if (arrowElements == null)
|
| | | {
|
| | |
| | | {
|
| | | position = _position,
|
| | | sizeDelta = _sizeDelta,
|
| | | rotation = _rotation,
|
| | | iconKey = _iconKey,
|
| | | };
|
| | | if (index >= arrowElements.Count)
|
| | | {
|
| | |
| | | [Serializable]
|
| | | public struct ArrowElement
|
| | | {
|
| | | public string iconKey;
|
| | | public Vector3 position;
|
| | | public Vector3 rotation;
|
| | | public Vector2 sizeDelta;
|
| | | }
|
| | | }
|