| | |
| | | public class TalentTreeScriptable : ScriptableObject
|
| | | {
|
| | | [SerializeField] TalentTree[] talentTrees;
|
| | | [SerializeField] TalentElement[] talentElements;
|
| | | [SerializeField] Vector2 m_ContentSizeDelta;
|
| | | [SerializeField] TalentElement[] skillElements;
|
| | | [SerializeField] ArrowElement[] arrowElements;
|
| | |
|
| | | public Vector2 contentSizeDelta
|
| | | {
|
| | | get { return m_ContentSizeDelta; }
|
| | | }
|
| | |
|
| | | public TalentElement GetTalentElement(int index)
|
| | | {
|
| | | if (index < skillElements.Length)
|
| | | {
|
| | | return skillElements[index];
|
| | | }
|
| | | return default(TalentElement);
|
| | | }
|
| | |
|
| | | public bool Belong(int job, int talentType, int talentSeries)
|
| | | {
|
| | |
| | | [Serializable]
|
| | | public struct TalentElement
|
| | | {
|
| | | public int type;
|
| | | public Vector3 position;
|
| | | }
|
| | |
|
| | | [Serializable]
|
| | | public struct ArrowElement
|
| | | {
|
| | | public Vector3 position;
|
| | | public Vector3 rotation;
|
| | | public Vector2 sizeDelta;
|
| | | }
|
| | | }
|
| | |
|