diff options
author | chai <chaifix@163.com> | 2021-09-15 19:58:59 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-09-15 19:58:59 +0800 |
commit | 28b89971f0d3fd246443450c87f33996716facb3 (patch) | |
tree | f7ab8055490d06a39ea52de6ab8f6f701c6b3733 /Assets/Scripts/Unit/UnitDetail.cs | |
parent | 5c559adec82205c3ce9427d6bfef5535867e2553 (diff) |
*misc
Diffstat (limited to 'Assets/Scripts/Unit/UnitDetail.cs')
-rw-r--r-- | Assets/Scripts/Unit/UnitDetail.cs | 51 |
1 files changed, 39 insertions, 12 deletions
diff --git a/Assets/Scripts/Unit/UnitDetail.cs b/Assets/Scripts/Unit/UnitDetail.cs index 30a98c63..bab954c4 100644 --- a/Assets/Scripts/Unit/UnitDetail.cs +++ b/Assets/Scripts/Unit/UnitDetail.cs @@ -59,27 +59,52 @@ public enum EUnitBone LLowerLeg, // 小腿肚 LFoot, // 左脚 LToes, // 脚趾 - LToe0, // 脚趾0 - LToe1, // 脚趾1 - LToe2, // 脚趾2 - LToe3, // 脚趾3 - LToe4, // 脚趾4 + //LToe0, // 脚趾0 + //LToe1, // 脚趾1 + //LToe2, // 脚趾2 + //LToe3, // 脚趾3 + //LToe4, // 脚趾4 RUpperLeg = 80, // 大腿 RLowerLeg, // 小腿肚 RFoot, // 左脚 RToes, // 脚趾 - RToe0, // 脚趾0 - RToe1, // 脚趾1 - RToe2, // 脚趾2 - RToe3, // 脚趾3 - RToe4, // 脚趾4 + //RToe0, // 脚趾0 + //RToe1, // 脚趾1 + //RToe2, // 脚趾2 + //RToe3, // 脚趾3 + //RToe4, // 脚趾4 } [Serializable] public class UnitBoneDictionary : SerializableDictionary<EUnitBone, Transform> { } +public enum EUnitReferencePoint
+{
+ None = 0,
+
+ Gunpoint = 1, // 枪口
+ Gunpoint2, // 枪口
+
+ SwordTop = 20, // 剑尖端
+ SwordBottom, // 剑底端
+
+ HitpointHead = 40,
+ HitpointHeadFront,
+ HitpointHeadBack,
+ HitpointNeck,
+ HitpointUpperBody,
+ HitpointUpperBodyFront,
+ HitpointUpperBodyBack,
+ HitpointLowerBody,
+ HitpointLowerBodyFront,
+ HitpointLowerBodyBack,
+} + +[Serializable] +public class UnitReferencePointDictionary : SerializableDictionary<EUnitReferencePoint, Transform> { } + // 角色的prefab附加数据 // * afterimage的prefab // * 骨骼映射 @@ -92,8 +117,10 @@ public class UnitDetail : MonoBehaviour public UnitBoneDictionary bones; - //[ExecuteInEditMode] - public UnitDetail() + public UnitReferencePointDictionary referencePoints;
+
+ //[ExecuteInEditMode]
+ public UnitDetail() { bones = new UnitBoneDictionary(); foreach(EUnitBone e in Enum.GetValues(typeof(EUnitBone))) |