From 3016d74e293b0ed97c32dc0775a70bab82678ccd Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期二, 25 九月 2018 19:34:04 +0800
Subject: [PATCH] 3687 天赋功能

---
 System/Skill/TalentTreeScriptable.cs |   26 ++++++++++++++++++++++++--
 1 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/System/Skill/TalentTreeScriptable.cs b/System/Skill/TalentTreeScriptable.cs
index 68148bc..72b11e7 100644
--- a/System/Skill/TalentTreeScriptable.cs
+++ b/System/Skill/TalentTreeScriptable.cs
@@ -10,7 +10,23 @@
     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)
         {
@@ -40,9 +56,15 @@
         [Serializable]
         public struct TalentElement
         {
-            public int type;
+            public Vector3 position;
+        }
+
+        [Serializable]
+        public struct ArrowElement
+        {
             public Vector3 position;
             public Vector3 rotation;
+            public Vector2 sizeDelta;
         }
     }
 

--
Gitblit v1.8.0